Skip to content

Commit

Permalink
Added support for native Node ES6 modules
Browse files Browse the repository at this point in the history
  • Loading branch information
richardsimko committed Nov 20, 2020
1 parent 10ab656 commit 58706eb
Show file tree
Hide file tree
Showing 10 changed files with 353 additions and 94 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,7 @@ Args:
pass the name through as-is. The 2nd parameter is a full module descriptor.
- `opts.resolverOptions`: An `object` passed to the resolvers. Used to configure
the lifetime, injection mode and more of the loaded modules.
- `opts.esModules`: Loads modules using Node's native ES modules. This is only supported on Node 14.0+ and should only be used if you're using the [Native Node ES modules](https://nodejs.org/api/esm.html)
Example:
Expand Down
176 changes: 153 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
},
"dependencies": {
"camel-case": "^4.1.1",
"glob": "^7.1.6"
"glob": "^7.1.6",
"rollup-plugin-copy": "^3.3.0"
},
"lint-staged": {
"*.ts": [
Expand Down
Loading

0 comments on commit 58706eb

Please sign in to comment.