@nola-lang/webpack 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.
Files changed (2) hide show
  1. package/README.md +25 -25
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,25 +1,25 @@
1
- # @nola-lang/webpack
2
-
3
- webpack plugin for [Nola](https://github.com/nola-lang/nola) `.tsi` modules.
4
-
5
- ```js
6
- // webpack.config.mjs
7
- import nola from "@nola-lang/webpack";
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.
23
-
24
- Options (`nola(options)`): `target` (`"app" | "lib"`), `config` (path override
25
- or `false`), `declarations`.
1
+ # @nola-lang/webpack
2
+
3
+ webpack plugin for [Nola](https://github.com/nola-lang/nola) `.tsi` modules.
4
+
5
+ ```js
6
+ // webpack.config.mjs
7
+ import nola from "@nola-lang/webpack";
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.
23
+
24
+ Options (`nola(options)`): `target` (`"app" | "lib"`), `config` (path override
25
+ or `false`), `declarations`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nola-lang/webpack",
3
- "version": "0.1.0-alpha.0",
3
+ "version": "0.1.2",
4
4
  "description": "webpack 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.0-alpha.0"
38
+ "@nola-lang/unplugin": "0.1.2"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=22"