@ecoding/base.build 0.1.5 → 0.1.6
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/libs/externals/ssr.js +5 -6
- package/package.json +2 -2
package/libs/externals/ssr.js
CHANGED
|
@@ -3,12 +3,11 @@ const nodeExternals = require("webpack-node-externals");
|
|
|
3
3
|
|
|
4
4
|
// https://www.tangshuang.net/3343.html 详解 https://sokpim.yuque.com/sokpim/uwbz2i/rfritg
|
|
5
5
|
const getExternals = () => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
]
|
|
6
|
+
let ary = [];
|
|
7
|
+
if (customConfig.ssr && customConfig.ssr.externals) {
|
|
8
|
+
ary = customConfig.ssr.externals
|
|
9
|
+
}
|
|
10
|
+
return ary;
|
|
12
11
|
};
|
|
13
12
|
|
|
14
13
|
module.exports = getExternals;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecoding/base.build",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "tpl building",
|
|
5
5
|
"author": "cxc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "07fe98cd2925b0eb6bc8298176d662db18aeaa17"
|
|
57
57
|
}
|