Skip to content

Commit 154feea

Browse files
authored
chore(build): cleanup build files (#3039)
1 parent 8022481 commit 154feea

File tree

3 files changed

+5
-39
lines changed

3 files changed

+5
-39
lines changed

scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ echo 'Done.'
1515
echo ''
1616

1717
echo 'Build ES modules...'
18-
NODE_ENV=es babel src --out-dir es --ignore 'src/**/*/fixtures,src/**/*.spec.js'
18+
NODE_ENV=es babel src --out-dir es --ignore 'src/**/*.spec.js'
1919
echo 'Done.'
2020
echo ''
2121

scripts/rollup.config.esm.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

scripts/rollup.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ const externals = ['vue', ...Object.keys(dependencies)]
1414

1515
// Libs in `external` will not be bundled to dist,
1616
// since they are expected to be provided later.
17-
// We want to include some of them in the build, so we exclude it here.
17+
// In some cases, wee want to include some of them in the build, so we
18+
// exclude the external here.
1819
const externalExcludes = ['popper.js', 'vue-functional-data-merge']
1920

2021
// The base rollup configuration
2122
const baseConfig = {
2223
input: path.resolve(src, 'index.js'),
23-
external: Object.keys(dependencies),
24+
external: externals,
2425
plugins: [resolve({ external: ['vue'] }), commonjs(), babel({ exclude: 'node_modules/**' })]
2526
}
2627

@@ -57,10 +58,9 @@ export default [
5758
}
5859
},
5960

60-
// ES
61+
// ESM
6162
{
6263
...baseConfig,
63-
external: ['vue'],
6464
output: {
6565
format: 'es',
6666
file: path.resolve(dist, `${name}.esm.js`),

0 commit comments

Comments
 (0)