@oipage/cli 0.3.0-alpha.3 → 0.3.0-alpha.4
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/CHANGELOG +1 -0
- package/bin/tools/resolveImport.js +5 -1
- package/package.json +1 -1
package/CHANGELOG
CHANGED
|
@@ -31,7 +31,11 @@ module.exports = function (basePath, filePath, entry, intercept, isDownload, isW
|
|
|
31
31
|
|
|
32
32
|
// 对于类似 import VISLite from "vislite"
|
|
33
33
|
// 需要把包名解析成具体的文件
|
|
34
|
-
if (!/\//.test(_importUrl
|
|
34
|
+
if (!/\//.test(_importUrl
|
|
35
|
+
|
|
36
|
+
// 兼容 "@oipage/browser.js" 类似的包
|
|
37
|
+
// 2026年09月11日 于南宁
|
|
38
|
+
.replace(/@[^/]+\//, ""))) {
|
|
35
39
|
let bundlePackage = require(join(npmBundlePath, "./package.json"));
|
|
36
40
|
npmNameValue = npmName + "/" + bundlePackage.main;
|
|
37
41
|
}
|