@tsrx/vite-plugin-react 0.0.98 → 0.0.99
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 +3 -4
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Vite plugin for @tsrx/react (.tsrx modules)",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Dominic Gannaway",
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.99",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public"
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@tsrx/core": "0.1.
|
|
24
|
-
"@tsrx/react": "0.2.
|
|
23
|
+
"@tsrx/core": "0.1.66",
|
|
24
|
+
"@tsrx/react": "0.2.66"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"vite": "*"
|
package/src/index.js
CHANGED
|
@@ -109,10 +109,9 @@ export function tsrxReact(options = {}) {
|
|
|
109
109
|
let source = tsx_code;
|
|
110
110
|
if (css) {
|
|
111
111
|
css_cache.set(id, css);
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
112
|
+
// After existing imports so dependency sheets (imported themes)
|
|
113
|
+
// evaluate first and this module's rules win at equal specificity.
|
|
114
|
+
source = `${tsx_code}\nimport ${JSON.stringify(id + CSS_QUERY)};\n`;
|
|
116
115
|
} else {
|
|
117
116
|
css_cache.delete(id);
|
|
118
117
|
}
|