@autobest-ui/scripts 1.0.4 → 1.0.5
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autobest-ui/scripts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "utils for project tools",
|
|
6
6
|
"bin": {
|
|
@@ -86,10 +86,11 @@
|
|
|
86
86
|
"sass-loader": "12.6.0",
|
|
87
87
|
"style-loader": "3.3.1",
|
|
88
88
|
"terser-webpack-plugin": "5.3.1",
|
|
89
|
+
"ts-node": "9.1.1",
|
|
89
90
|
"webpack": "5.70.0",
|
|
90
91
|
"webpack-dev-server": "4.7.4",
|
|
91
92
|
"webpack-merge": "5.8.0",
|
|
92
93
|
"webpack-node-externals": "3.0.0"
|
|
93
94
|
},
|
|
94
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "3cb84df7169090f2cea8e54ded7f537f4ce4decf"
|
|
95
96
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const webpack = require('webpack');
|
|
1
2
|
const nodeExternals = require('webpack-node-externals');
|
|
2
3
|
const { merge } = require('webpack-merge');
|
|
3
4
|
const { getProjectPath } = require('../common/utils');
|
|
@@ -44,6 +45,8 @@ module.exports = function (appConfig, extendEnv) {
|
|
|
44
45
|
}
|
|
45
46
|
]
|
|
46
47
|
},
|
|
48
|
+
// 覆盖查找规则, 减少无用模块
|
|
49
|
+
plugins: [new webpack.ContextReplacementPlugin(/any-promise/)],
|
|
47
50
|
// 避免路径丢失
|
|
48
51
|
node: {
|
|
49
52
|
__filename: true,
|