Skip to content

Commit

Permalink
feat(webpack-runner): 现在components可以具有treeshaking优化了
Browse files Browse the repository at this point in the history
  • Loading branch information
Littly committed Jan 23, 2019
1 parent c85f0f4 commit 9af11fa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
7 changes: 1 addition & 6 deletions packages/taro-webpack-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,14 @@
},
"homepage": "https://github.com/NervJS/taro#readme",
"dependencies": {
"@types/lodash": "4.14.116",
"autoprefixer": "8.6.4",
"babel-core": "6.26.0",
"babel-loader": "7.1.4",
"babel-plugin-dev-expression": "0.2.1",
"babel-plugin-syntax-dynamic-import": "6.18.0",
"babel-plugin-transform-react-jsx": "6.24.1",
"chalk": "2.4.1",
"clean-webpack-plugin": "0.1.19",
"css-loader": "1.0.0",
"csso-webpack-plugin": "1.0.0-beta.12",
"file-loader": "3.0.1",
"html-webpack-include-assets-plugin": "1.0.5",
"html-webpack-plugin": "3.1.0",
"less": "3.0.4",
Expand All @@ -51,9 +47,7 @@
"node-sass": "4.8.3",
"opn": "5.3.0",
"ora": "2.1.0",
"postcss-csso": "3.0.0",
"postcss-loader": "2.1.3",
"postcss-modules": "1.4.1",
"postcss-plugin-constparse": "1.2.8",
"postcss-pxtransform": "1.2.8",
"resolve": "1.8.1",
Expand All @@ -72,6 +66,7 @@
},
"devDependencies": {
"@types/autoprefixer": "6.7.3",
"@types/lodash": "4.14.116",
"@types/node": "10.3.5",
"@types/resolve": "0.0.8",
"@types/webpack": "4.4.3",
Expand Down
3 changes: 1 addition & 2 deletions packages/taro-webpack-runner/src/config/dll.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ export default function (config: BuildConfig): any {
lib: [
'nervjs',
'@tarojs/taro-h5',
'@tarojs/router',
'@tarojs/components'
'@tarojs/router'
]
},

Expand Down
3 changes: 0 additions & 3 deletions packages/taro-webpack-runner/src/util/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,6 @@ const getModule = ({
...plugins.babel,
sourceMap: enableSourceMap
}
if (mode === 'production') {
additionalBabelOptions.plugins.push(require.resolve('babel-plugin-dev-expression'))
}
rule.jsx = {
use: {
babelLoader: {
Expand Down

0 comments on commit 9af11fa

Please sign in to comment.