@dsh-workbench/module-tools 0.2.0 → 0.2.1
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 +2 -2
- package/src/checks/kit.mjs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-workbench/module-tools",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "模块包的构建与门禁工具:build(单文件 ESM 宿主侧 + 套 loader 壳的浏览器侧)、check(契约/产物边界/源码边界/卡片渲染)。模块包不再各带一份构建脚本。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"esbuild": "^0.28.2",
|
|
24
|
-
"@dsh-workbench/shared": "0.2.
|
|
24
|
+
"@dsh-workbench/shared": "0.2.1"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"selfcheck": "node scripts/selfcheck.mjs"
|
package/src/checks/kit.mjs
CHANGED
|
@@ -81,7 +81,7 @@ function shellKitOf(clientPath) {
|
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
83
|
const window = { __ModuleLoader__: { load } };
|
|
84
|
-
//
|
|
84
|
+
// 要的就是"按浏览器加载器那样把这份产物跑一遍",静态解析会骗人(no-new-func 在本仓的 eslint 配置里没开)
|
|
85
85
|
new Function('window', readFileSync(clientPath, 'utf8'))(window);
|
|
86
86
|
return exports?.kit ?? {};
|
|
87
87
|
}
|