vite-plugin-taro 0.6.16 → 0.6.18-beta.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 CHANGED
@@ -1,10 +1,10 @@
1
1
  # VPT
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/vite-plugin-taro.svg)](https://www.npmjs.com/package/vite-plugin-taro)
4
- [![npm downloads](https://img.shields.io/npm/dm/vite-plugin-taro.svg)](https://www.npmjs.com/package/vite-plugin-taro)
4
+ [![npm downloads](https://badgen.net/npm/dm/vite-plugin-taro)](https://www.npmjs.com/package/vite-plugin-taro)
5
5
  ![Vite](https://img.shields.io/npm/dependency-version/vite-plugin-taro/peer/vite?label=Vite)
6
- [![CI](https://github.com/sep2/vite-plugin-taro/actions/workflows/windows.yml/badge.svg?branch=main)](https://github.com/sep2/vite-plugin-taro/actions/workflows/windows.yml)
7
- [![coverage](https://img.shields.io/badge/coverage-100%25-brightgreen.svg)](https://github.com/sep2/vite-plugin-taro/actions/workflows/coverage.yml)
6
+ [![CI](https://github.com/sep2/vite-plugin-taro/actions/workflows/publish.yml/badge.svg?branch=main&event=push)](https://github.com/sep2/vite-plugin-taro/actions/workflows/publish.yml)
7
+ [![coverage](https://img.shields.io/badge/coverage-100%25-brightgreen.svg)](https://github.com/sep2/vite-plugin-taro/actions/workflows/publish.yml)
8
8
  [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
9
9
 
10
10
  [简体中文](README.md) | English
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # VPT
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/vite-plugin-taro.svg)](https://www.npmjs.com/package/vite-plugin-taro)
4
- [![npm downloads](https://img.shields.io/npm/dm/vite-plugin-taro.svg)](https://www.npmjs.com/package/vite-plugin-taro)
4
+ [![npm downloads](https://badgen.net/npm/dm/vite-plugin-taro)](https://www.npmjs.com/package/vite-plugin-taro)
5
5
  ![Vite](https://img.shields.io/npm/dependency-version/vite-plugin-taro/peer/vite?label=Vite)
6
- [![CI](https://github.com/sep2/vite-plugin-taro/actions/workflows/windows.yml/badge.svg?branch=main)](https://github.com/sep2/vite-plugin-taro/actions/workflows/windows.yml)
7
- [![coverage](https://img.shields.io/badge/coverage-100%25-brightgreen.svg)](https://github.com/sep2/vite-plugin-taro/actions/workflows/coverage.yml)
6
+ [![CI](https://github.com/sep2/vite-plugin-taro/actions/workflows/publish.yml/badge.svg?branch=main&event=push)](https://github.com/sep2/vite-plugin-taro/actions/workflows/publish.yml)
7
+ [![coverage](https://img.shields.io/badge/coverage-100%25-brightgreen.svg)](https://github.com/sep2/vite-plugin-taro/actions/workflows/publish.yml)
8
8
  [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
9
9
 
10
10
  简体中文 | [English](README.en.md)
@@ -2,11 +2,11 @@ import path from 'node:path';
2
2
  import { normalizePath } from 'vite';
3
3
  /** Resolves the source file for the configured App component. */
4
4
  export function resolveAppComponentPath({ appPath, projectRoot }) {
5
- return path.resolve(projectRoot, appPath);
5
+ return normalizePath(path.resolve(projectRoot, appPath));
6
6
  }
7
7
  /** Resolves the source file for one configured Page component. */
8
8
  export function resolvePageComponentPath({ pagePath, projectRoot }) {
9
- return path.resolve(projectRoot, 'src', `${pagePath}.tsx`);
9
+ return normalizePath(path.resolve(projectRoot, 'src', `${pagePath}.tsx`));
10
10
  }
11
11
  /** Creates a portable import for one configured Page component. */
12
12
  export function createPageComponentImportPath(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-taro",
3
- "version": "0.6.16",
3
+ "version": "0.6.18-beta.0",
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",
@@ -60,12 +60,12 @@
60
60
  "@tailwindcss/oxide": "4.3.3",
61
61
  "@tarojs/components": "4.2.1",
62
62
  "@tarojs/helper": "4.2.1",
63
- "@tarojs/plugin-framework-react": "npm:vite-plugin-taro-plugin-framework-react@0.6.16",
63
+ "@tarojs/plugin-framework-react": "npm:vite-plugin-taro-plugin-framework-react@0.6.18-beta.0",
64
64
  "@tarojs/plugin-platform-h5": "4.2.1",
65
65
  "@tarojs/plugin-platform-weapp": "4.2.1",
66
- "@tarojs/react": "npm:vite-plugin-taro-react@0.6.16",
66
+ "@tarojs/react": "npm:vite-plugin-taro-react@0.6.18-beta.0",
67
67
  "@tarojs/router": "4.2.1",
68
- "@tarojs/runtime": "npm:vite-plugin-taro-runtime@0.6.16",
68
+ "@tarojs/runtime": "npm:vite-plugin-taro-runtime@0.6.18-beta.0",
69
69
  "@tarojs/taro": "4.2.1",
70
70
  "@vitejs/plugin-react": "^6.1.0",
71
71
  "@weapp-tailwindcss/postcss": "3.2.11",
@@ -13,12 +13,12 @@ type PageComponentPathOptions = {
13
13
 
14
14
  /** Resolves the source file for the configured App component. */
15
15
  export function resolveAppComponentPath({ appPath, projectRoot }: AppComponentPathOptions): string {
16
- return path.resolve(projectRoot, appPath)
16
+ return normalizePath(path.resolve(projectRoot, appPath))
17
17
  }
18
18
 
19
19
  /** Resolves the source file for one configured Page component. */
20
20
  export function resolvePageComponentPath({ pagePath, projectRoot }: PageComponentPathOptions): string {
21
- return path.resolve(projectRoot, 'src', `${pagePath}.tsx`)
21
+ return normalizePath(path.resolve(projectRoot, 'src', `${pagePath}.tsx`))
22
22
  }
23
23
 
24
24
  /** Creates a portable import for one configured Page component. */