@tsrx/bun-plugin-vue 0.0.69 → 0.0.70

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
  The plugin compiles `.tsrx` modules with `@tsrx/vue`, runs the downstream
25
25
  `vue-jsx-vapor` transform, strips the remaining TypeScript syntax with Bun, and
26
- emits component-local `<style>` blocks as virtual CSS modules.
26
+ emits sibling-scoped `<style>` blocks (each styles its siblings and everything
27
+ 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/vue (.tsrx modules)",
4
4
  "license": "MIT",
5
5
  "author": "Dominic Gannaway",
6
- "version": "0.0.69",
6
+ "version": "0.0.70",
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.1.65"
23
+ "@tsrx/vue": "0.1.66"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "bun": "^1.0.0",
package/src/index.js CHANGED
@@ -165,7 +165,9 @@ export function tsrxVue(options = {}) {
165
165
  let output = code;
166
166
  if (emit_css && css) {
167
167
  css_cache.set(css_id, css);
168
- output = `import ${JSON.stringify(css_id)};\n${code}`;
168
+ // After the module's own imports so imported themes' sheets load first
169
+ // and a rule in the applying module wins at equal specificity.
170
+ output = `${code}\nimport ${JSON.stringify(css_id)};\n`;
169
171
  } else {
170
172
  css_cache.delete(css_id);
171
173
  }