提交 90036f33 编写于 作者: fxy060608's avatar fxy060608

fix(mp): windows

上级 d6b1479d
...@@ -91,7 +91,7 @@ function hasModule (name) { ...@@ -91,7 +91,7 @@ function hasModule (name) {
const NODE_MODULES_REGEX = /(\.\.\/)?node_modules/g const NODE_MODULES_REGEX = /(\.\.\/)?node_modules/g
function normalizeNodeModules (str) { function normalizeNodeModules (str) {
str = str.replace(NODE_MODULES_REGEX, 'node-modules') str = normalizePath(str).replace(NODE_MODULES_REGEX, 'node-modules')
if (process.env.UNI_PLATFORM === 'mp-alipay') { if (process.env.UNI_PLATFORM === 'mp-alipay') {
str = str.replace('node-modules/@', 'node-modules/npm-scope-') str = str.replace('node-modules/@', 'node-modules/npm-scope-')
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册