Skip to content

Commit e9dc467

Browse files
committed
v1.6.0: auto-detect jsx options.
1 parent 6aaf705 commit e9dc467

File tree

15 files changed

+624
-23
lines changed

15 files changed

+624
-23
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
1.6.0
2+
=====
3+
Released: Nov. 20, 2024
4+
5+
* ESBuild Plugin:
6+
* Auto-detect some TypeScript compilerOptions from a project's deno.json[c] file.
7+
So far, this is just `jsx` and `jsxImportSource`. Please open an issue if you'd like more.
8+
19
1.5.0
210
=====
311

4-
Upgrade the ESBuild plugin to use jsr:@luca/esbuild-deno-loader@^0.11.0. (auto-detects import maps.)
12+
* Upgrade the ESBuild plugin to use jsr:@luca/esbuild-deno-loader@^0.11.0. (auto-detects import maps.)
513

614
1.4.0
715
=====

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,26 @@ Main Features
1010
-------------
1111

1212
* Files are embedded within plain TypeScript (`.ts`) files.
13-
* No need for `--allow-net` or `--allow-read` permissions to load them!
14-
* You can `deno compile` the resulting app (or users can `deno install` it)
15-
and all your static file dependencies will be present.
13+
* No need for `--allow-net` or `--allow-read` permissions to load them!
14+
* Works with:
15+
* `deno run`
16+
* `deno compile`
17+
* `deno install`
18+
* `deno check`
19+
* etc.?
1620
* "Dev mode" for quick development
1721
* Automatic (gzip) compression for file types that benefit from it.
18-
* Plugins for modifying files before embedding them, if needed.
22+
* Designed to work with Deno's [SADI] (Statically-analyzable dynamic imports)
23+
* Embedded files are automatically marked as part of your scripts' dependency graph.
24+
* But, data files are only loaded into memory at runtime when requested.
1925
* Utilities for easily serving embedded files from [Oak] or [Hono]. See:
2026
* [helpers/oak](https://jsr.io/@nfnitloop/deno-embedder/doc/helpers/oak/~)
2127
* [helpers/hono](https://jsr.io/@nfnitloop/deno-embedder/doc/helpers/hono/~)
28+
* Plugins for modifying files before embedding them, if needed. (See the ESBuild Plugin, below.)
2229

2330
[Oak]: https://github.com/oakserver/oak#readme
2431
[Hono]: https://hono.dev
32+
[SADI]: https://deno.com/deploy/changelog#statically-analyzable-dynamic-imports
2533

2634
Quick Start
2735
-----------

deno.jsonc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
},
3131
"tasks": {
3232
// Run the full test suite:
33-
"test": "deno task check && deno task examples:test && deno task lints",
33+
"test": "deno task check && deno task examples:test && deno task test:jsx && deno task lints",
34+
35+
// Since this directory has its own deno.jsonc, we need to test it explicitly:
36+
"test:jsx": "cd tests/jsx_config && deno test -A",
3437

3538
"check": "deno task check:main && deno task check:without-embedder && deno task examples:build && deno task examples:check && deno task check:publish",
3639
"check:main": "./tools/with-exports.ts deno check --doc",

deno.lock

Lines changed: 58 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/hono/deno.lock

Lines changed: 27 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/with-embedder/deno.lock

Lines changed: 27 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ function converterFor(baseDir: string, opts: Mapping) {
463463
* Supports "dev" and "build" subcommands.
464464
*
465465
* For example, you can create an `embedder.ts` like:
466-
* ```ts
466+
* ```ts, ignore
467467
* import * as embed from "./mod.ts" // NOTE: You'll use the full import path here. :)
468468
*
469469
* let options: embed.DevOptions = {

0 commit comments

Comments
 (0)