Skip to content

Commit

Permalink
json5 bad
Browse files Browse the repository at this point in the history
  • Loading branch information
justjake committed Dec 27, 2023
1 parent 123a717 commit 02b8173
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions packages/quickjs-emscripten-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,18 @@ You can provide your own variant to control exactly how the large WebAssembly ob

You can use [subpath imports in package.json](https://nodejs.org/api/packages.html#subpath-imports) to select the appropriate variant for a runtime. This is how the main `quickjs-emscripten` package picks between browser, Node ESM and Node CommonJS variants.

```json5
```json
// in your package.json
{
imports: {
"imports": {
"#my-quickjs-variant": {
types: "@jitl/quickjs-wasmfile-release-sync",
"types": "@jitl/quickjs-wasmfile-release-sync",
// In the browser, use the singlefile variant that doesn't need an external file
browser: "@jitl/quickjs-singlefile-browser-release-sync",
"browser": "@jitl/quickjs-singlefile-browser-release-sync",
// Otherwise, use the wasmfile variant, compatible with all environments
default: "@jitl/quickjs-wasmfile-release-sync",
},
},
"default": "@jitl/quickjs-wasmfile-release-sync"
}
}
}
```

Expand Down
2 changes: 1 addition & 1 deletion packages/quickjs-emscripten-core/README.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ You can provide your own variant to control exactly how the large WebAssembly ob

You can use [subpath imports in package.json](https://nodejs.org/api/packages.html#subpath-imports) to select the appropriate variant for a runtime. This is how the main `quickjs-emscripten` package picks between browser, Node ESM and Node CommonJS variants.

```json5
```json
// in your package.json
{
"imports": {
Expand Down

0 comments on commit 02b8173

Please sign in to comment.