@tsrx/vite-plugin-vue 0.0.12 → 0.0.14
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/package.json +3 -3
- package/src/index.js +1 -1
- package/src/vapor.js +6 -7
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Vite plugin for @tsrx/vue (.tsrx modules)",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Dominic Gannaway",
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.14",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@tsrx/vue": "0.0.
|
|
23
|
+
"@tsrx/vue": "0.0.23"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"vite": "*"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"typescript": "^5.9.3",
|
|
30
30
|
"vite": "^8.0.0",
|
|
31
31
|
"vue": "3.6.0-beta.10",
|
|
32
|
-
"vue-jsx-vapor": "^3.2.
|
|
32
|
+
"vue-jsx-vapor": "^3.2.12"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
35
|
"src",
|
package/src/index.js
CHANGED
|
@@ -101,7 +101,7 @@ export function tsrxVue(options = {}) {
|
|
|
101
101
|
let finalCode = code;
|
|
102
102
|
let finalMap = /** @type {any} */ (map);
|
|
103
103
|
if (css) {
|
|
104
|
-
cssCache.set(realPath, css
|
|
104
|
+
cssCache.set(realPath, css);
|
|
105
105
|
finalCode = `import ${JSON.stringify(realPath + CSS_QUERY)};\n${code}`;
|
|
106
106
|
if (finalMap && typeof finalMap.mappings === 'string') {
|
|
107
107
|
finalMap = { ...finalMap, mappings: ';' + finalMap.mappings };
|
package/src/vapor.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
/** @import { Plugin } from 'vite' */
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const require = createRequire(import.meta.url);
|
|
6
|
-
const vueJsxVaporViteEntry = 'vue-jsx-vapor/vite';
|
|
3
|
+
import vueJsxVaporModule from 'vue-jsx-vapor/vite';
|
|
7
4
|
|
|
8
5
|
/**
|
|
9
6
|
* @typedef {(options: {
|
|
@@ -12,11 +9,13 @@ const vueJsxVaporViteEntry = 'vue-jsx-vapor/vite';
|
|
|
12
9
|
* }) => Plugin[]} VueJsxVaporPlugin
|
|
13
10
|
*/
|
|
14
11
|
|
|
15
|
-
const
|
|
16
|
-
|
|
12
|
+
const vueJsxVaporModuleInterop = /** @type {VueJsxVaporPlugin | { default: VueJsxVaporPlugin }} */ (
|
|
13
|
+
/** @type {unknown} */ (vueJsxVaporModule)
|
|
17
14
|
);
|
|
18
15
|
const vueJsxVapor =
|
|
19
|
-
typeof
|
|
16
|
+
typeof vueJsxVaporModuleInterop === 'function'
|
|
17
|
+
? vueJsxVaporModuleInterop
|
|
18
|
+
: vueJsxVaporModuleInterop.default;
|
|
20
19
|
|
|
21
20
|
export function tsrxVueVapor() {
|
|
22
21
|
return vueJsxVapor({
|