@vitarx/plugin-vite 0.0.1-beta.2 → 0.0.1-beta.3
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/index.js +2 -0
- package/package.json +1 -3
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { transform } from './transform.js';
|
|
|
5
5
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
6
6
|
let viteTransform;
|
|
7
7
|
if (version.startsWith('8')) {
|
|
8
|
+
// @ts-ignore
|
|
8
9
|
viteTransform = (await import('vite')).transformWithOxc;
|
|
9
10
|
}
|
|
10
11
|
else {
|
|
@@ -34,6 +35,7 @@ export default function vitarx(_options) {
|
|
|
34
35
|
const configSSR = !!config.build?.ssr;
|
|
35
36
|
isSSR = env.isSsrBuild === true || configSSR;
|
|
36
37
|
return defineConfig({
|
|
38
|
+
// @ts-ignore
|
|
37
39
|
oxc: {
|
|
38
40
|
jsx: 'preserve',
|
|
39
41
|
exclude: /\.[jt]sx$/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitarx/plugin-vite",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.3",
|
|
4
4
|
"description": "The official plugin for Vitarx support in Vite.",
|
|
5
5
|
"author": "ZhuChongLin <8210856@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -52,8 +52,6 @@
|
|
|
52
52
|
"node": "^25.7.0",
|
|
53
53
|
"prettier": "^3.8.1",
|
|
54
54
|
"rimraf": "^6.1.3",
|
|
55
|
-
"vitarx": "^4.0.0-beta.0",
|
|
56
|
-
"vite": "^8.0.0-beta.16",
|
|
57
55
|
"vitest": "^4.0.18"
|
|
58
56
|
},
|
|
59
57
|
"scripts": {
|