@nola-lang/rspack 0.1.0-alpha.0 → 0.1.3
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 +22 -22
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
# @nola-lang/rspack
|
|
2
|
-
|
|
3
|
-
Rspack plugin for [Nola](https://github.com/nola-lang/nola) `.tsi` modules.
|
|
4
|
-
|
|
5
|
-
```js
|
|
6
|
-
// rspack.config.mjs
|
|
7
|
-
import nola from "@nola-lang/rspack";
|
|
8
|
-
|
|
9
|
-
export default {
|
|
10
|
-
target: "node22", // Nola is server-only in v0 — browser targets fail with NOLA4001
|
|
11
|
-
resolve: {
|
|
12
|
-
extensions: [".ts", ".js"],
|
|
13
|
-
// NodeNext convention: plain TS written for tsc says "./x.js" while only x.ts is on disk.
|
|
14
|
-
extensionAlias: { ".js": [".js", ".ts"] },
|
|
15
|
-
},
|
|
16
|
-
plugins: [nola()],
|
|
17
|
-
};
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
- `nola.config.ts` is auto-wired into the bundle for app targets.
|
|
21
|
-
- For `tsc --noEmit` in CI, run `nola declarations` and enable
|
|
22
|
-
`"allowArbitraryExtensions": true` in tsconfig.
|
|
1
|
+
# @nola-lang/rspack
|
|
2
|
+
|
|
3
|
+
Rspack plugin for [Nola](https://github.com/nola-lang/nola) `.tsi` modules.
|
|
4
|
+
|
|
5
|
+
```js
|
|
6
|
+
// rspack.config.mjs
|
|
7
|
+
import nola from "@nola-lang/rspack";
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
target: "node22", // Nola is server-only in v0 — browser targets fail with NOLA4001
|
|
11
|
+
resolve: {
|
|
12
|
+
extensions: [".ts", ".js"],
|
|
13
|
+
// NodeNext convention: plain TS written for tsc says "./x.js" while only x.ts is on disk.
|
|
14
|
+
extensionAlias: { ".js": [".js", ".ts"] },
|
|
15
|
+
},
|
|
16
|
+
plugins: [nola()],
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
- `nola.config.ts` is auto-wired into the bundle for app targets.
|
|
21
|
+
- For `tsc --noEmit` in CI, run `nola declarations` and enable
|
|
22
|
+
`"allowArbitraryExtensions": true` in tsconfig.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nola-lang/rspack",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Rspack plugin for Nola (.tsi)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nola",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"!dist/.tsbuildinfo"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@nola-lang/unplugin": "0.1.
|
|
39
|
+
"@nola-lang/unplugin": "0.1.3"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=22"
|