@tsrx/vite-plugin-solid 0.0.95 → 0.0.96

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/index.js +3 -8
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Vite plugin for @tsrx/solid (.tsrx modules) targeting Solid 2.0",
4
4
  "license": "MIT",
5
5
  "author": "Dominic Gannaway",
6
- "version": "0.0.95",
6
+ "version": "0.0.96",
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.65",
24
- "@tsrx/solid": "0.1.65"
23
+ "@tsrx/core": "0.1.66",
24
+ "@tsrx/solid": "0.1.66"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "vite": "*"
package/src/index.js CHANGED
@@ -150,14 +150,9 @@ export function tsrxSolid(options = {}) {
150
150
 
151
151
  if (css) {
152
152
  css_cache.set(real_path, css);
153
- code = `import ${JSON.stringify(real_path + CSS_QUERY)};\n${code}`;
154
- // The prepended import adds one line to the generated output;
155
- // shift every mapping down by one line so source positions stay
156
- // aligned. In VLQ source maps, each `;` separates generated
157
- // lines, so prefixing one `;` offsets all mappings by one line.
158
- if (map && typeof map.mappings === 'string') {
159
- map = { ...map, mappings: ';' + map.mappings };
160
- }
153
+ // After existing imports so dependency sheets (imported themes)
154
+ // evaluate first and this module's rules win at equal specificity.
155
+ code = `${code}\nimport ${JSON.stringify(real_path + CSS_QUERY)};\n`;
161
156
  } else {
162
157
  css_cache.delete(real_path);
163
158
  }