@nola-lang/esbuild 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 +35 -35
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
# @nola-lang/esbuild
|
|
2
|
-
|
|
3
|
-
esbuild plugin for [Nola](https://github.com/nola-lang/nola) `.tsi` modules.
|
|
4
|
-
|
|
5
|
-
```js
|
|
6
|
-
import { build } from "esbuild";
|
|
7
|
-
import nola from "@nola-lang/esbuild";
|
|
8
|
-
|
|
9
|
-
await build({
|
|
10
|
-
entryPoints: ["src/main.ts"],
|
|
11
|
-
bundle: true,
|
|
12
|
-
platform: "node",
|
|
13
|
-
format: "esm",
|
|
14
|
-
packages: "external",
|
|
15
|
-
outdir: "dist",
|
|
16
|
-
plugins: [nola()],
|
|
17
|
-
});
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
With tsup:
|
|
21
|
-
|
|
22
|
-
```ts
|
|
23
|
-
// tsup.config.ts
|
|
24
|
-
import { defineConfig } from "tsup";
|
|
25
|
-
import nola from "@nola-lang/esbuild";
|
|
26
|
-
|
|
27
|
-
export default defineConfig({
|
|
28
|
-
entry: ["src/main.ts"],
|
|
29
|
-
format: ["esm"],
|
|
30
|
-
esbuildPlugins: [nola()],
|
|
31
|
-
});
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
Nola execution is server-only in v0 (`platform: "node"`). For `tsc --noEmit`,
|
|
35
|
-
run `nola declarations` and enable `"allowArbitraryExtensions": true`.
|
|
1
|
+
# @nola-lang/esbuild
|
|
2
|
+
|
|
3
|
+
esbuild plugin for [Nola](https://github.com/nola-lang/nola) `.tsi` modules.
|
|
4
|
+
|
|
5
|
+
```js
|
|
6
|
+
import { build } from "esbuild";
|
|
7
|
+
import nola from "@nola-lang/esbuild";
|
|
8
|
+
|
|
9
|
+
await build({
|
|
10
|
+
entryPoints: ["src/main.ts"],
|
|
11
|
+
bundle: true,
|
|
12
|
+
platform: "node",
|
|
13
|
+
format: "esm",
|
|
14
|
+
packages: "external",
|
|
15
|
+
outdir: "dist",
|
|
16
|
+
plugins: [nola()],
|
|
17
|
+
});
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
With tsup:
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
// tsup.config.ts
|
|
24
|
+
import { defineConfig } from "tsup";
|
|
25
|
+
import nola from "@nola-lang/esbuild";
|
|
26
|
+
|
|
27
|
+
export default defineConfig({
|
|
28
|
+
entry: ["src/main.ts"],
|
|
29
|
+
format: ["esm"],
|
|
30
|
+
esbuildPlugins: [nola()],
|
|
31
|
+
});
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Nola execution is server-only in v0 (`platform: "node"`). For `tsc --noEmit`,
|
|
35
|
+
run `nola declarations` and enable `"allowArbitraryExtensions": true`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nola-lang/esbuild",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "esbuild plugin for Nola (.tsi) — also covers tsup",
|
|
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"
|