Skip to content

Commit

Permalink
README: syntax highlighting (#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon04 authored May 26, 2021
1 parent 0c91795 commit a415645
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ The filenames and paths for generated bundles in each format are defined by the
"exports": {
"require": "./dist/foo.js", // CommonJS output bundle
"default": "./dist/foo.modern.js", // Modern ES Modules output bundle
}
},
"types": "dist/foo.d.ts" // TypeScript typings directory
}
```
Expand All @@ -184,7 +184,7 @@ Node.js 12.16+ adds a new "ES Module package", which can be enabled by adding `{
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.
When using `{"type":"module"}`, the file extension for CommonJS bundles generated by Microbundle must be changed to `.cjs`:

```
```jsonc
{
"type": "module",
"module": "dist/foo.js", // ES Module bundle
Expand Down

0 comments on commit a415645

Please sign in to comment.