Skip to content

Commit

Permalink
feat(library): ✨ support native ESM
Browse files Browse the repository at this point in the history
add `module` and `exports` attribute into `package.json` file

fix pugjs#23
  • Loading branch information
achmadk committed Oct 13, 2021
1 parent 9ba2c84 commit a10ede2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
"description": "Array of \"void elements\" defined by the HTML specification.",
"main": "index.js",
"jsnext:main": "index.es.js",
"module": "index.es.js",
"exports": {
".": {
"require": "./index.js",
"import": "./index.es.js"
}
},
"scripts": {
"pretest": "node build.js test/latest.js",
"test": "node test",
Expand Down

0 comments on commit a10ede2

Please sign in to comment.