Skip to content

Commit 2fcfec9

Browse files
committed
chore: treeshake unused imports
The latest version of vue has an import from weex, which is unused but throws an error if left in the bundle
1 parent 67a1d6a commit 2fcfec9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build/config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ const genConfig = (name) => {
6262
banner: opts.banner,
6363
name: opts.moduleName
6464
},
65+
treeshake: {
66+
pureExternalModules: id => id.startsWith('weex')
67+
},
6568
plugins: [
6669
replace({
6770
__WEEX__: false,

0 commit comments

Comments
 (0)