@ecoding/base.build 1.0.4 → 1.0.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/resolve/index.js +2 -1
- package/package.json +2 -2
package/libs/resolve/index.js
CHANGED
|
@@ -8,10 +8,11 @@ const getResolve = () => {
|
|
|
8
8
|
在 js 里出现 import 'vue' 这样不是相对、也不是绝对路径的写法时,会去 node_modules 目录下找。
|
|
9
9
|
但是默认的配置,会采用向上递归搜索的方式去寻找,但通常项目目录里只有一个 node_modules,
|
|
10
10
|
且是在项目根目录,为了减少搜索范围,可以直接写明 node_modules 的全路径;
|
|
11
|
+
注意:如果项目三方依赖包存在多个新老版本,设为全路径会有问题
|
|
11
12
|
*/
|
|
12
13
|
modules: [
|
|
13
14
|
rootPath('./src'),
|
|
14
|
-
|
|
15
|
+
'node_modules'
|
|
15
16
|
],
|
|
16
17
|
|
|
17
18
|
// 配置后缀名,方便代码书写时引用不写后缀
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecoding/base.build",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "tpl building",
|
|
5
5
|
"author": "cxc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"publishConfig": {
|
|
15
15
|
"access": "public"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "4e74610d8249adbe4ab3ca1f1c7435a549382162",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@babel/core": "7.26.0",
|
|
20
20
|
"@babel/plugin-proposal-decorators": "7.25.9",
|