akfun 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ module.exports = {
|
|
|
16
16
|
plugins: [
|
|
17
17
|
// ['import', { libraryName: 'antd', style: 'css' }], // babel-plugin-import: antd的按需加载
|
|
18
18
|
['@babel/plugin-transform-runtime'],
|
|
19
|
-
['@babel/plugin-proposal-decorators', { legacy: true }],
|
|
19
|
+
['@babel/plugin-proposal-decorators', { legacy: true }], // 启用装饰器语法支持
|
|
20
20
|
'@babel/plugin-proposal-function-sent',
|
|
21
21
|
'@babel/plugin-proposal-export-namespace-from',
|
|
22
22
|
'@babel/plugin-proposal-numeric-separator',
|
|
@@ -51,8 +51,8 @@ module.exports = (akfunConfig) => {
|
|
|
51
51
|
devtool: curEnvConfig.productionSourceMap ? curEnvConfig.devtool || 'eval-source-map' : 'eval', // 开发环境
|
|
52
52
|
optimization: {
|
|
53
53
|
chunkIds: 'named', // named 对调试更友好的可读的 id。
|
|
54
|
-
emitOnErrors: true
|
|
55
|
-
minimize: false
|
|
54
|
+
emitOnErrors: true
|
|
55
|
+
// minimize: false
|
|
56
56
|
},
|
|
57
57
|
plugins: [
|
|
58
58
|
// https://github.com/glenjamin/webpack-hot-middleware#installation--usage
|
|
@@ -53,7 +53,7 @@ module.exports = (akfunConfig) => {
|
|
|
53
53
|
*/
|
|
54
54
|
chunkIds: 'named',
|
|
55
55
|
emitOnErrors: true,
|
|
56
|
-
minimize: true,
|
|
56
|
+
// minimize: true,
|
|
57
57
|
minimizer: [
|
|
58
58
|
// For webpack@5 you can use the `...` syntax to extend existing minimizers (i.e. `terser-webpack-plugin`), uncomment the next line
|
|
59
59
|
`...`,
|