Skip to content

Commit a415645

Browse files
authored
README: syntax highlighting (#839)
1 parent 0c91795 commit a415645

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ The filenames and paths for generated bundles in each format are defined by the
167167
"exports": {
168168
"require": "./dist/foo.js", // CommonJS output bundle
169169
"default": "./dist/foo.modern.js", // Modern ES Modules output bundle
170-
}
170+
},
171171
"types": "dist/foo.d.ts" // TypeScript typings directory
172172
}
173173
```
@@ -184,7 +184,7 @@ Node.js 12.16+ adds a new "ES Module package", which can be enabled by adding `{
184184
This property [changes the default source type](https://nodejs.org/api/packages.html#packages_determining_module_system) of `.js` files to be ES Modules instead of CommonJS.
185185
When using `{"type":"module"}`, the file extension for CommonJS bundles generated by Microbundle must be changed to `.cjs`:
186186

187-
```
187+
```jsonc
188188
{
189189
"type": "module",
190190
"module": "dist/foo.js", // ES Module bundle

0 commit comments

Comments
 (0)