Skip to content

chore(build): cleanup build files #3039

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Apr 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ echo 'Done.'
echo ''

echo 'Build ES modules...'
NODE_ENV=es babel src --out-dir es --ignore 'src/**/*/fixtures,src/**/*.spec.js'
NODE_ENV=es babel src --out-dir es --ignore 'src/**/*.spec.js'
echo 'Done.'
echo ''

Expand Down
34 changes: 0 additions & 34 deletions scripts/rollup.config.esm.js

This file was deleted.

8 changes: 4 additions & 4 deletions scripts/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ const externals = ['vue', ...Object.keys(dependencies)]

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

// The base rollup configuration
const baseConfig = {
input: path.resolve(src, 'index.js'),
external: Object.keys(dependencies),
external: externals,
plugins: [resolve({ external: ['vue'] }), commonjs(), babel({ exclude: 'node_modules/**' })]
}

Expand Down Expand Up @@ -57,10 +58,9 @@ export default [
}
},

// ES
// ESM
{
...baseConfig,
external: ['vue'],
output: {
format: 'es',
file: path.resolve(dist, `${name}.esm.js`),
Expand Down