vite-plugin-taro 0.5.11 → 0.5.12

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.
@@ -185,11 +185,9 @@ async function publishBuildMetadata(server, buildId, port) {
185
185
  await writeHmrFile(server.config.build.outDir, hmrPatchesFileName, renderInitialHmrPatches());
186
186
  await writeHmrFile(server.config.build.outDir, hmrInfoFileName, renderHmrInfo(info));
187
187
  }
188
- /** Appends the physical project directory after Vite's normal server URLs. */
188
+ /** Replaces browser server URLs with the physical project directory consumed by WeChat DevTools. */
189
189
  function installDevToolsPrinter(server) {
190
- const originalPrintUrls = server.printUrls.bind(server);
191
190
  server.printUrls = () => {
192
- originalPrintUrls();
193
191
  server.config.logger.info(` ${colors.green('➜')} ${colors.bold('WeChat DevTools')}: ${colors.cyan(relativeToViteConfig(server.config.build.outDir, server.config.configFile, server.config.root))}`);
194
192
  };
195
193
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-taro",
3
- "version": "0.5.11",
3
+ "version": "0.5.12",
4
4
  "author": "sep2",
5
5
  "description": "Vite 8 plugin for building one React/Taro codebase for WeChat Mini Program and H5 targets.",
6
6
  "type": "module",
@@ -75,8 +75,8 @@
75
75
  "rolldown": "1.2.3",
76
76
  "tailwindcss": "^4.3.3",
77
77
  "weapp-tailwindcss": "^5.2.11",
78
- "@tarojs/react": "npm:vite-plugin-taro-react@0.5.11",
79
- "@tarojs/plugin-framework-react": "npm:vite-plugin-taro-plugin-framework-react@0.5.11"
78
+ "@tarojs/plugin-framework-react": "npm:vite-plugin-taro-plugin-framework-react@0.5.12",
79
+ "@tarojs/react": "npm:vite-plugin-taro-react@0.5.12"
80
80
  },
81
81
  "peerDependencies": {
82
82
  "react": "^19.0.0",
@@ -256,11 +256,9 @@ async function publishBuildMetadata(server: ViteDevServer, buildId: string, port
256
256
  await writeHmrFile(server.config.build.outDir, hmrInfoFileName, renderHmrInfo(info))
257
257
  }
258
258
 
259
- /** Appends the physical project directory after Vite's normal server URLs. */
259
+ /** Replaces browser server URLs with the physical project directory consumed by WeChat DevTools. */
260
260
  function installDevToolsPrinter(server: ViteDevServer): void {
261
- const originalPrintUrls = server.printUrls.bind(server)
262
261
  server.printUrls = () => {
263
- originalPrintUrls()
264
262
  server.config.logger.info(
265
263
  ` ${colors.green('➜')} ${colors.bold('WeChat DevTools')}: ${colors.cyan(relativeToViteConfig(server.config.build.outDir, server.config.configFile, server.config.root))}`
266
264
  )