@shadow-js/vite 1.0.3 → 1.0.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.4
4
+
5
+ ### Changed
6
+
7
+ - Released at 1.0.4 with the other packages, which share one version. No change to this package.
8
+
3
9
  ## 1.0.3
4
10
 
5
11
  ### Changed
package/README.md CHANGED
@@ -13,8 +13,7 @@ npm install -D @shadow-js/vite vite
13
13
  ```
14
14
 
15
15
  Requires Vite 7 or 8 (`vite` is an optional peer dependency, `^7.0.0 || ^8.0.0`). `@shadow-js/compiler` is installed
16
- as a dependency. ShadowJS 1.0.0 is not on npm yet; until it is published, install it from a local
17
- checkout of this repository.
16
+ as a dependency.
18
17
 
19
18
  ## Example
20
19
 
@@ -120,6 +119,7 @@ export default defineConfig({
120
119
  | `hmr` | `true` | Hot-update components in place during `vite dev`. |
121
120
  | `dev` | Vite dev mode | Force development output (component names, extra checks). |
122
121
  | `domTests` | detected | Run the browser build under Vitest. On by default for `happy-dom` and `jsdom`. |
122
+ | `compiler` | `"auto"` | Which compiler implementation runs: `"auto"` (the fastest available), `"native"` (the Rust or WebAssembly build; throws when only the TypeScript one is available) or `"javascript"` (the TypeScript implementation only). |
123
123
  | `plugins` | none | [Compiler plugins](https://shadowjs.net/guides/compiler/) (`CompilerPlugin` from `@shadow-js/compiler`) that run in the build on every compiled module. Validated when `shadow()` is called; errors fail the build with the plugin's name and the position, warnings go to Vite's log. |
124
124
 
125
125
  ## Hot updates
@@ -170,7 +170,7 @@ Entry `@shadow-js/vite/mdx`:
170
170
 
171
171
  ## Dependencies
172
172
 
173
- - Runtime `@shadow-js/compiler` `1.0.0`: compiles component sources in the Vite plugin (`src/index.ts`).
173
+ - Runtime `@shadow-js/compiler` `1.0.4`: compiles component sources in the Vite plugin (`src/index.ts`).
174
174
  - Optional peers: `vite` `^7.0.0 || ^8.0.0`: the host for the plugin and the `Plugin` type (`src/index.ts`, `src/mdx.ts`); `@mdx-js/mdx` `^3.0.0`: compiles MDX (`src/mdx.ts`).
175
175
 
176
176
  ## Types
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shadow-js/vite",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "A Vite plugin that compiles your JSX, builds for server rendering and sets up Vitest",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -38,12 +38,12 @@
38
38
  "typecheck": "tsc -p tsconfig.json"
39
39
  },
40
40
  "dependencies": {
41
- "@shadow-js/compiler": "1.0.3"
41
+ "@shadow-js/compiler": "1.0.4"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "vite": "^7.0.0 || ^8.0.0",
45
45
  "@mdx-js/mdx": "^3.0.0",
46
- "@shadow-js/web": "^1.0.3"
46
+ "@shadow-js/web": "^1.0.4"
47
47
  },
48
48
  "peerDependenciesMeta": {
49
49
  "vite": {