@nola-lang/vite 0.1.0-alpha.0 → 0.1.2
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 +27 -27
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
# @nola-lang/vite
|
|
2
|
-
|
|
3
|
-
Vite plugin for [Nola](https://github.com/nola-lang/nola) `.tsi` modules.
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
// vite.config.ts
|
|
7
|
-
import { defineConfig } from "vite";
|
|
8
|
-
import nola from "@nola-lang/vite";
|
|
9
|
-
|
|
10
|
-
export default defineConfig({
|
|
11
|
-
plugins: [nola()],
|
|
12
|
-
});
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Nola execution is **server-only in v0**: `.tsi` transforms for SSR environments
|
|
16
|
-
(`vite build --ssr`, SSR dev). A client bundle importing `.tsi` fails the build
|
|
17
|
-
with `NOLA4001` — move the import behind a server boundary.
|
|
18
|
-
|
|
19
|
-
- `nola.config.ts` is auto-wired into the bundle for app targets (the config
|
|
20
|
-
graph is bundled by Vite itself, so config edits hot-reload).
|
|
21
|
-
- For `tsc --noEmit` in CI, run `nola declarations` and enable
|
|
22
|
-
`"allowArbitraryExtensions": true` in tsconfig so plain tsc resolves `.tsi`
|
|
23
|
-
imports through the generated `*.d.tsi.ts` files.
|
|
24
|
-
|
|
25
|
-
Options (`nola(options)`): `target` (`"app" | "lib"`), `config` (path override
|
|
26
|
-
or `false` to disable wiring), `declarations` (emit `d.tsi.ts` during the build,
|
|
27
|
-
scoped to the project root of the `.tsi` files being bundled).
|
|
1
|
+
# @nola-lang/vite
|
|
2
|
+
|
|
3
|
+
Vite plugin for [Nola](https://github.com/nola-lang/nola) `.tsi` modules.
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
// vite.config.ts
|
|
7
|
+
import { defineConfig } from "vite";
|
|
8
|
+
import nola from "@nola-lang/vite";
|
|
9
|
+
|
|
10
|
+
export default defineConfig({
|
|
11
|
+
plugins: [nola()],
|
|
12
|
+
});
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Nola execution is **server-only in v0**: `.tsi` transforms for SSR environments
|
|
16
|
+
(`vite build --ssr`, SSR dev). A client bundle importing `.tsi` fails the build
|
|
17
|
+
with `NOLA4001` — move the import behind a server boundary.
|
|
18
|
+
|
|
19
|
+
- `nola.config.ts` is auto-wired into the bundle for app targets (the config
|
|
20
|
+
graph is bundled by Vite itself, so config edits hot-reload).
|
|
21
|
+
- For `tsc --noEmit` in CI, run `nola declarations` and enable
|
|
22
|
+
`"allowArbitraryExtensions": true` in tsconfig so plain tsc resolves `.tsi`
|
|
23
|
+
imports through the generated `*.d.tsi.ts` files.
|
|
24
|
+
|
|
25
|
+
Options (`nola(options)`): `target` (`"app" | "lib"`), `config` (path override
|
|
26
|
+
or `false` to disable wiring), `declarations` (emit `d.tsi.ts` during the build,
|
|
27
|
+
scoped to the project root of the `.tsi` files being bundled).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nola-lang/vite",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Vite plugin for Nola (.tsi)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nola",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"!dist/.tsbuildinfo"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@nola-lang/unplugin": "0.1.
|
|
38
|
+
"@nola-lang/unplugin": "0.1.2"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=22"
|