@adep/web-container 0.2.0 → 0.2.2
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/dist/function-fetch-proxy.d.ts +9 -3
- package/dist/index.js +286 -91
- package/dist/vite-dev.d.ts +2 -0
- package/dist/web-container.esm.js +6985 -0
- package/dist/web-container.iife.js +7003 -0
- package/package.json +17 -22
package/dist/vite-dev.d.ts
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
* (真 live binding、真模块隔离),不是 CJS 打平;
|
|
12
12
|
* - **转换**:`.ts` 复用 stripTypes 擦类型;`.css` 变成「注入 `<style>` 的副作用模块」;
|
|
13
13
|
* `.json` 变成默认导出对象;`.vue` 经注入的 SFC 编译器(IDE 侧装 `vue/compiler-sfc`);
|
|
14
|
+
* JS 系产物统一过 define 替换(`process.env.NODE_ENV` / `__VUE_*__`),让 esm-bundler
|
|
15
|
+
* 构建(vue 等)在无打包器的浏览器里也能跑;
|
|
14
16
|
* - **依赖**:裸说明符经 node-resolve 命中 VFS `node_modules/`(终端 `npm install` 的产物),
|
|
15
17
|
* 与 CLI / 线上同一套解析规则;相对说明符支持 Vite 风格省略扩展名(.ts/.js/.vue/…);
|
|
16
18
|
* - **HMR**:订阅 VFS 变更(`vfs.onMutate`,IDE 保存 / shell 写入 / npm 解包皆触发)→
|