Update rollup config

This commit is contained in:
pengfei.zhou 2021-09-01 15:39:25 +08:00 committed by osborn
parent 3cb26e0fd2
commit c1f39de8e3
3 changed files with 6 additions and 6 deletions

View File

@ -80,7 +80,7 @@ dirs.forEach((e) => {
readDirs(e, allFiles); readDirs(e, allFiles);
}); });
export default allFiles export default allFiles
.map((e) => e.replace(/.tsx*/, "")) .map((e) => e.replace(/\.tsx?$/, ""))
.map((bundle) => { .map((bundle) => {
return { return {
input: `build/${bundle}.js`, input: `build/${bundle}.js`,
@ -107,7 +107,7 @@ export default allFiles
// If need ES5 support enable following configs // If need ES5 support enable following configs
// .concat( // .concat(
// allFiles // allFiles
// .map(e => e.replace(/.tsx*/, '')) // .map((e) => e.replace(/\.tsx?$/, ""))
// .map(bundle => { // .map(bundle => {
// return { // return {
// input: `build/${bundle}.js`, // input: `build/${bundle}.js`,

View File

@ -81,7 +81,7 @@ dirs.forEach((e) => {
readDirs(e, allFiles); readDirs(e, allFiles);
}); });
export default allFiles export default allFiles
.map((e) => e.replace(/.tsx*/, "")) .map((e) => e.replace(/\.tsx?$/, ""))
.map((bundle) => { .map((bundle) => {
return { return {
input: `build/${bundle}.js`, input: `build/${bundle}.js`,
@ -108,7 +108,7 @@ export default allFiles
// If need ES5 support enable following configs // If need ES5 support enable following configs
// .concat( // .concat(
// allFiles // allFiles
// .map(e => e.replace(/.tsx*/, '')) // .map((e) => e.replace(/\.tsx?$/, ""))
// .map(bundle => { // .map(bundle => {
// return { // return {
// input: `build/${bundle}.js`, // input: `build/${bundle}.js`,

View File

@ -81,7 +81,7 @@ dirs.forEach((e) => {
readDirs(e, allFiles); readDirs(e, allFiles);
}); });
export default allFiles export default allFiles
.map((e) => e.replace(/.tsx*/, "")) .map((e) => e.replace(/\.tsx?$/, ""))
.map((bundle) => { .map((bundle) => {
return { return {
input: `build/${bundle}.js`, input: `build/${bundle}.js`,
@ -107,7 +107,7 @@ export default allFiles
}) })
.concat( .concat(
allFiles allFiles
.map((e) => e.replace(/.tsx*/, "")) .map((e) => e.replace(/\.tsx?$/, ""))
.map((bundle) => { .map((bundle) => {
return { return {
input: `build/${bundle}.js`, input: `build/${bundle}.js`,