vite-plugin-taro 0.6.20 → 0.7.0
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/README.en.md +4 -4
- package/README.md +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +147 -136
- package/dist/node/plugins/mini/dev/dev-host.d.ts +29 -0
- package/dist/node/plugins/{wx → mini}/dev/hmr-files.d.ts +1 -3
- package/dist/node/plugins/mini/dev/hmr-mode.d.ts +32 -0
- package/dist/node/plugins/{wx → mini}/dev/hmr-protocol.d.ts +1 -1
- package/dist/node/plugins/{wx/dev/wx-dev-options.d.ts → mini/dev/mini-dev-options.d.ts} +7 -7
- package/dist/node/plugins/{wx → mini}/dev/modes/devtools/devtools-hmr-mode.d.ts +4 -3
- package/dist/node/plugins/mini/dev/modes/interpreter/interpreter-hmr-mode.d.ts +4 -0
- package/dist/node/plugins/mini/dev/modes/rebuild/rebuild-hmr-mode.d.ts +4 -0
- package/dist/node/plugins/mini/dev/plugins.d.ts +35 -0
- package/dist/node/plugins/{wx → mini}/dev/react-refresh.d.ts +7 -7
- package/dist/node/plugins/mini/mini-contract.d.ts +66 -0
- package/dist/node/plugins/mini/module/module.d.ts +38 -0
- package/dist/node/plugins/{wx → mini}/output/files.d.ts +4 -4
- package/dist/node/plugins/{wx → mini}/placer/placement.d.ts +5 -11
- package/dist/node/plugins/{wx → mini}/placer/placer.d.ts +14 -11
- package/dist/node/plugins/mini/plugins.d.ts +4 -0
- package/dist/node/plugins/{wx → mini}/render/capsule.d.ts +5 -5
- package/dist/node/plugins/{wx → mini}/render/native.d.ts +6 -4
- package/dist/node/plugins/{wx → mini}/render/system-js/string-editor.d.ts +1 -1
- package/dist/node/plugins/{wx → mini}/render/system-js/system-js.d.ts +1 -1
- package/dist/node/plugins/{wx → mini}/render/transport.d.ts +3 -1
- package/dist/node/plugins/{wx → mini}/resolve/resolver.d.ts +3 -3
- package/dist/node/plugins/{wx → mini}/resolve/specialize-app-capsule.d.ts +2 -2
- package/dist/node/plugins/{wx → mini}/resolve/specialize-page-capsule.d.ts +2 -2
- package/dist/node/plugins/mini/skeleton/skeleton-utils.d.ts +33 -0
- package/dist/node/plugins/{wx/styles/create-wx-transformer.d.ts → mini/styles/create-mini-transformer.d.ts} +3 -3
- package/dist/node/plugins/{wx → mini}/styles/plugins.d.ts +32 -32
- package/dist/node/plugins/wx/create-wx-skeleton.d.ts +57 -0
- package/dist/node/plugins/wx/plugins.d.ts +5 -2
- package/dist/node/plugins/zfb/create-zfb-skeleton.d.ts +59 -0
- package/dist/node/plugins/zfb/plugins.d.ts +7 -0
- package/dist/node/utils/modules.d.ts +2 -0
- package/dist/node/utils/project-config.d.ts +3 -1
- package/dist/options.d.ts +44 -26
- package/dist/runtime/{wx → mini}/amphibious/bootstrap.js +4 -4
- package/dist/runtime/{wx → mini}/capsule/app.js +1 -1
- package/dist/runtime/mini/capsule/page.js +18 -0
- package/dist/runtime/{wx → mini}/capsule/taro-runtime.d.ts +2 -2
- package/dist/runtime/{wx → mini}/capsule/taro-runtime.js +5 -4
- package/dist/runtime/{wx/dev/wx-hmr-protocol.d.ts → mini/dev/hmr-protocol.d.ts} +2 -2
- package/dist/runtime/{wx/dev/wx-hmr-protocol.js → mini/dev/hmr-protocol.js} +2 -2
- package/dist/runtime/{wx/dev/wx-hmr-runtime.d.ts → mini/dev/mini-hmr-runtime.d.ts} +24 -7
- package/dist/runtime/{wx/dev/wx-hmr-runtime.js → mini/dev/mini-hmr-runtime.js} +21 -13
- package/dist/runtime/mini/dev/modes/devtools/devtools-runtime.d.ts +23 -0
- package/dist/runtime/{wx → mini}/dev/modes/devtools/devtools-runtime.js +8 -8
- package/dist/runtime/{wx → mini}/dev/modes/devtools/page-hmr.js +5 -5
- package/dist/runtime/{wx → mini}/dev/modes/interpreter/interpreter-protocol.d.ts +2 -2
- package/dist/runtime/mini/dev/modes/interpreter/interpreter-protocol.js +1 -0
- package/dist/runtime/mini/dev/modes/interpreter/interpreter-runtime.d.ts +12 -0
- package/dist/runtime/{wx → mini}/dev/modes/interpreter/interpreter-runtime.js +14 -7
- package/dist/runtime/mini/dev/polyfill/polyfill-queue-microtask.d.ts +14 -0
- package/dist/runtime/mini/dev/polyfill/polyfill-queue-microtask.js +18 -0
- package/dist/runtime/{wx → mini}/native/page.js +1 -1
- package/dist/runtime/{wx → mini}/systemjs/system-core.js +2 -3
- package/dist/runtime/wx/dev/connect-wx-socket.d.ts +3 -0
- package/dist/runtime/wx/dev/connect-wx-socket.js +2 -0
- package/dist/runtime/wx/dev/devtools-runtime.js +5 -0
- package/dist/runtime/wx/dev/interpreter-runtime.js +5 -0
- package/dist/runtime/zfb/dev/connect-zfb-socket.d.ts +10 -0
- package/dist/runtime/zfb/dev/connect-zfb-socket.js +18 -0
- package/dist/runtime/zfb/dev/devtools-runtime.d.ts +1 -0
- package/dist/runtime/zfb/dev/devtools-runtime.js +5 -0
- package/dist/runtime/zfb/dev/interpreter-runtime.d.ts +1 -0
- package/dist/runtime/zfb/dev/interpreter-runtime.js +5 -0
- package/package.json +10 -8
- package/dist/node/plugins/wx/dev/dev-host.d.ts +0 -29
- package/dist/node/plugins/wx/dev/hmr-mode.d.ts +0 -31
- package/dist/node/plugins/wx/dev/modes/interpreter/interpreter-hmr-mode.d.ts +0 -3
- package/dist/node/plugins/wx/dev/plugins.d.ts +0 -32
- package/dist/node/plugins/wx/module/module.d.ts +0 -51
- package/dist/node/plugins/wx/output/relative-root.d.ts +0 -2
- package/dist/node/plugins/wx/output/templates.d.ts +0 -124
- package/dist/runtime/wx/capsule/page.js +0 -18
- package/dist/runtime/wx/dev/modes/interpreter/interpreter-protocol.js +0 -1
- /package/dist/node/plugins/{wx → mini}/dev/create-hmr-results-stream.d.ts +0 -0
- /package/dist/node/plugins/{wx → mini}/dev/host-actions.d.ts +0 -0
- /package/dist/node/plugins/{wx → mini}/dev/patch-journal.d.ts +0 -0
- /package/dist/node/plugins/{wx → mini}/module/chunk-path.d.ts +0 -0
- /package/dist/node/plugins/{wx → mini}/native/compile-native-component-interface.d.ts +0 -0
- /package/dist/node/plugins/{wx → mini}/native/create-native-component-output.d.ts +0 -0
- /package/dist/node/plugins/{wx → mini}/native/native-component-assets.d.ts +0 -0
- /package/dist/node/plugins/{wx → mini}/native/native-component-interface.d.ts +0 -0
- /package/dist/runtime/{wx → mini}/amphibious/bootstrap.d.ts +0 -0
- /package/dist/runtime/{wx → mini}/amphibious/transport.d.ts +0 -0
- /package/dist/runtime/{wx → mini}/amphibious/transport.js +0 -0
- /package/dist/runtime/{wx → mini}/capsule/app.d.ts +0 -0
- /package/dist/runtime/{wx → mini}/capsule/component.d.ts +0 -0
- /package/dist/runtime/{wx → mini}/capsule/component.js +0 -0
- /package/dist/runtime/{wx → mini}/capsule/page.d.ts +0 -0
- /package/dist/runtime/{wx → mini}/dev/modes/devtools/page-hmr.d.ts +0 -0
- /package/dist/runtime/{wx → mini}/native/app.d.ts +0 -0
- /package/dist/runtime/{wx → mini}/native/app.js +0 -0
- /package/dist/runtime/{wx → mini}/native/component.d.ts +0 -0
- /package/dist/runtime/{wx → mini}/native/component.js +0 -0
- /package/dist/runtime/{wx → mini}/native/custom-wrapper.d.ts +0 -0
- /package/dist/runtime/{wx → mini}/native/custom-wrapper.js +0 -0
- /package/dist/runtime/{wx → mini}/native/page.d.ts +0 -0
- /package/dist/runtime/{wx → mini}/systemjs/system-core.d.ts +0 -0
- /package/dist/runtime/wx/dev/{modes/devtools/devtools-runtime.d.ts → devtools-runtime.d.ts} +0 -0
- /package/dist/runtime/wx/dev/{modes/interpreter/interpreter-runtime.d.ts → interpreter-runtime.d.ts} +0 -0
package/README.en.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
[简体中文](README.md) | English
|
|
11
11
|
|
|
12
|
-
Build WeChat Mini Program and Web apps with Vite 8, React 19, Taro 4, and Tailwind CSS v4.
|
|
12
|
+
Build WeChat Mini Program, Alipay Mini Program, and Web apps with Vite 8, React 19, Taro 4, and Tailwind CSS v4.
|
|
13
13
|
|
|
14
14
|
Website: <https://vpt.js.org>
|
|
15
15
|
|
|
@@ -27,10 +27,10 @@ Continue with the [Quick Start guide](https://vpt.js.org/guides/quick-start/).
|
|
|
27
27
|
|
|
28
28
|
<video src="https://github.com/user-attachments/assets/c8289e1e-d8ad-429f-a0d9-a40656b4962a" controls autoplay muted loop playsinline width="100%"></video>
|
|
29
29
|
|
|
30
|
-
- **Vite 8 + React 19** Build one codebase for WeChat Mini Program
|
|
30
|
+
- **Vite 8 + React 19** Build one codebase for WeChat Mini Program, Alipay Mini Program, and Web.
|
|
31
31
|
- **Hot reload** Preserve App data, the active page, React component state, and input state while editing.
|
|
32
|
-
- **Automatic subpackages** Use standard static and dynamic imports while vpt plans
|
|
33
|
-
- **Tailwind CSS v4 ready** Write utility classes directly;
|
|
32
|
+
- **Automatic subpackages** Use standard static and dynamic imports while vpt plans Mini Program packages automatically.
|
|
33
|
+
- **Tailwind CSS v4 ready** Write utility classes directly; styles adapt automatically for every target.
|
|
34
34
|
- **Built on Taro, beyond Taro** Use Taro components and APIs without the old webpack pipeline.
|
|
35
35
|
- **Skyline ready** Use WeChat Skyline rendering globally or per page.
|
|
36
36
|
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
简体中文 | [English](README.en.md)
|
|
11
11
|
|
|
12
|
-
使用 Vite 8、React 19、Taro 4 和 Tailwind CSS v4
|
|
12
|
+
使用 Vite 8、React 19、Taro 4 和 Tailwind CSS v4 构建微信小程序、支付宝小程序与 Web 应用。
|
|
13
13
|
|
|
14
14
|
官网:<https://vpt.js.org>
|
|
15
15
|
|
|
@@ -28,7 +28,7 @@ npm create vite-taro@latest my-app
|
|
|
28
28
|
|
|
29
29
|
<video src="https://github.com/user-attachments/assets/c8289e1e-d8ad-429f-a0d9-a40656b4962a" controls autoplay muted loop playsinline width="100%"></video>
|
|
30
30
|
|
|
31
|
-
- **Vite 8 + React 19** 基于 Vite
|
|
31
|
+
- **Vite 8 + React 19** 基于 Vite 生态,一份代码覆盖微信小程序、支付宝小程序与 Web。
|
|
32
32
|
- **热更新** 编辑代码时保留 App 数据、当前页面、React 组件状态与输入状态。
|
|
33
33
|
- **全自动分包** 使用标准静态与动态导入,由 vpt 自动规划微信小程序分包。
|
|
34
34
|
- **Tailwind CSS v4 开箱即用** 直接书写工具类,微信与 Web 样式自动适配。
|
|
@@ -41,8 +41,8 @@ npm create vite-taro@latest my-app
|
|
|
41
41
|
- [AI 开发指南](https://vpt.js.org/guides/ai/)
|
|
42
42
|
- [样式](https://vpt.js.org/guides/styles/)
|
|
43
43
|
- [全自动分包](https://vpt.js.org/guides/automatic-subpackages/)
|
|
44
|
-
- [
|
|
45
|
-
- [
|
|
44
|
+
- [原生组件](https://vpt.js.org/guides/native-components/)
|
|
45
|
+
- [开发热更新](https://vpt.js.org/guides/hot-module-replacement/)
|
|
46
46
|
- [配置选项](https://vpt.js.org/guides/configuration/)
|
|
47
47
|
- [条件编译](https://vpt.js.org/guides/conditional-directives/)
|
|
48
48
|
- [Skyline 模式](https://vpt.js.org/guides/skyline-mode/)
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from './node/vpt.ts';
|
|
2
|
-
export type { VptHmrOptions, VptJsonObject, VptOptions, VptPageOption, VptTarget } from './options.ts';
|
|
2
|
+
export type { VptAppConfig, VptHmrOptions, VptJsonObject, VptJsonValue, VptOptions, VptPageConfig, VptPageOption, VptTarget } from './options.ts';
|