@zubra/unplugin 5.7.0 → 5.8.0

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 +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zubra/unplugin",
3
- "version": "5.7.0",
3
+ "version": "5.8.0",
4
4
  "description": "Compile .zb components in Vite, Rollup, webpack, esbuild and Rspack, with React and Vue wrappers picked automatically",
5
5
  "license": "ISC",
6
6
  "repository": {
@@ -34,8 +34,8 @@
34
34
  "unplugin": "3.7.0"
35
35
  },
36
36
  "peerDependencies": {
37
- "@zubra/compiler": "^5.7.0",
38
- "@zubra/runtime": "^5.7.0"
37
+ "@zubra/compiler": "^5.8.0",
38
+ "@zubra/runtime": "^5.8.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@zubra/compiler": "file:../compiler",
package/src/index.js CHANGED
@@ -278,7 +278,8 @@ export const unplugin = createUnplugin((options = {}, meta = {}) => {
278
278
  const element = JSON.stringify(`${path}${QUERY}element`);
279
279
  // In development the wrapper accepts its updates: the element it wraps hot-reloads itself.
280
280
  return `import Element from ${element};\nimport { wrap } from ${JSON.stringify(`${runtime}/${variant}`)};\n`
281
- + `export { tag } from ${element};\nexport default wrap(Element);\n`
281
+ // Everything the element module exports by name: its tag, and its `export enum`s.
282
+ + `export * from ${element};\nexport default wrap(Element);\n`
282
283
  + (dev && meta.framework === 'vite' ? 'if (import.meta.hot) import.meta.hot.accept(() => {});\n' : '');
283
284
  }
284
285
  for (const dependency of dependencies(path)) this.addWatchFile?.(dependency);