Skip to content

Commit

Permalink
docs: bump Node requirement to 12.2.0 for createRequire support
Browse files Browse the repository at this point in the history
- set `engines.node` in `package.json` to show this as well
  • Loading branch information
agilgur5 committed Jul 18, 2023
1 parent 5c04ca1 commit 1d229d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ Otherwise the plugin should work in watch mode. Make sure to run a normal build

* TypeScript `2.4+`
* Rollup `1.26.3+`
* Node `6.4.0+` (basic ES6 support)
* Node `12.2.0+` (to [support `createRequire`](https://nodejs.org/api/module.html#modulecreaterequirefilename))

### Reporting bugs and Contributing

Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
"test:watch": "jest --watch",
"test:coverage": "jest --coverage"
},
"engines": {
"node": ">=12.2.0"
},
"dependencies": {
"@rollup/pluginutils": "^4.1.2",
"find-cache-dir": "^3.3.2",
Expand Down

0 comments on commit 1d229d9

Please sign in to comment.