@tsrx/bun-plugin-solid 0.0.58 → 0.0.60

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.md CHANGED
@@ -23,7 +23,8 @@ await Bun.build({
23
23
  ```
24
24
 
25
25
  The plugin compiles `.tsrx` modules with `@tsrx/solid`, runs Solid's JSX transform
26
- through Babel, and emits component-local `<style>` blocks as virtual CSS modules.
26
+ through Babel, and emits sibling-scoped `<style>` blocks (each styles its siblings
27
+ and everything below them) as virtual CSS modules.
27
28
 
28
29
  For `bun:test`, register it from a preload:
29
30
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Bun plugin for @tsrx/solid (.tsrx modules)",
4
4
  "license": "MIT",
5
5
  "author": "Dominic Gannaway",
6
- "version": "0.0.58",
6
+ "version": "0.0.60",
7
7
  "type": "module",
8
8
  "publishConfig": {
9
9
  "access": "public"
@@ -23,7 +23,7 @@
23
23
  "@babel/core": "^7.29.0",
24
24
  "@babel/preset-typescript": "^7.28.5",
25
25
  "babel-preset-solid": "2.0.0-rc.3",
26
- "@tsrx/solid": "0.1.64"
26
+ "@tsrx/solid": "0.1.66"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@solidjs/web": "2.0.0-rc.3",
package/src/index.js CHANGED
@@ -131,7 +131,9 @@ export function tsrxSolid(options = {}) {
131
131
  let output = code;
132
132
  if (emit_css && css) {
133
133
  css_cache.set(css_id, css);
134
- output = `import ${JSON.stringify(css_id)};\n${code}`;
134
+ // After the module's own imports so imported themes' sheets load first
135
+ // and a rule in the applying module wins at equal specificity.
136
+ output = `${code}\nimport ${JSON.stringify(css_id)};\n`;
135
137
  } else {
136
138
  css_cache.delete(css_id);
137
139
  }