From c1f39de8e3cfda78760bf69437e48e43a4c3532d Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Wed, 1 Sep 2021 15:39:25 +0800 Subject: [PATCH] Update rollup config --- doric-cli/assets-lib/example/rollup.config.js | 4 ++-- doric-cli/assets/_rollup.config.js | 4 ++-- doric-demo/rollup.config.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doric-cli/assets-lib/example/rollup.config.js b/doric-cli/assets-lib/example/rollup.config.js index 386c63b7..77dfae0f 100644 --- a/doric-cli/assets-lib/example/rollup.config.js +++ b/doric-cli/assets-lib/example/rollup.config.js @@ -80,7 +80,7 @@ dirs.forEach((e) => { readDirs(e, allFiles); }); export default allFiles - .map((e) => e.replace(/.tsx*/, "")) + .map((e) => e.replace(/\.tsx?$/, "")) .map((bundle) => { return { input: `build/${bundle}.js`, @@ -107,7 +107,7 @@ export default allFiles // If need ES5 support enable following configs // .concat( // allFiles -// .map(e => e.replace(/.tsx*/, '')) +// .map((e) => e.replace(/\.tsx?$/, "")) // .map(bundle => { // return { // input: `build/${bundle}.js`, diff --git a/doric-cli/assets/_rollup.config.js b/doric-cli/assets/_rollup.config.js index f9072f76..312b80df 100644 --- a/doric-cli/assets/_rollup.config.js +++ b/doric-cli/assets/_rollup.config.js @@ -81,7 +81,7 @@ dirs.forEach((e) => { readDirs(e, allFiles); }); export default allFiles - .map((e) => e.replace(/.tsx*/, "")) + .map((e) => e.replace(/\.tsx?$/, "")) .map((bundle) => { return { input: `build/${bundle}.js`, @@ -108,7 +108,7 @@ export default allFiles // If need ES5 support enable following configs // .concat( // allFiles -// .map(e => e.replace(/.tsx*/, '')) +// .map((e) => e.replace(/\.tsx?$/, "")) // .map(bundle => { // return { // input: `build/${bundle}.js`, diff --git a/doric-demo/rollup.config.js b/doric-demo/rollup.config.js index a24bbf15..9a0312fd 100644 --- a/doric-demo/rollup.config.js +++ b/doric-demo/rollup.config.js @@ -81,7 +81,7 @@ dirs.forEach((e) => { readDirs(e, allFiles); }); export default allFiles - .map((e) => e.replace(/.tsx*/, "")) + .map((e) => e.replace(/\.tsx?$/, "")) .map((bundle) => { return { input: `build/${bundle}.js`, @@ -107,7 +107,7 @@ export default allFiles }) .concat( allFiles - .map((e) => e.replace(/.tsx*/, "")) + .map((e) => e.replace(/\.tsx?$/, "")) .map((bundle) => { return { input: `build/${bundle}.js`,