diff --git a/.commitlintrc.js b/.commitlintrc.cjs similarity index 100% rename from .commitlintrc.js rename to .commitlintrc.cjs diff --git a/doc/manual/usage.md b/doc/manual/usage.md index a63f7b2..b9779a2 100644 --- a/doc/manual/usage.md +++ b/doc/manual/usage.md @@ -2,14 +2,14 @@ The code needs a ES2015+ polyfill to work, for example [regenerator-runtime/runtime](https://babeljs.io/docs/usage/polyfill). ```js -require( 'regenerator-runtime/runtime' ) ; +await import( 'regenerator-runtime/runtime.js' ) ; // or import 'regenerator-runtime/runtime.js' ; ``` Then ```js -const persistent = require( '@functional-data-structure/persistent' ) ; +const persistent = await import( '@functional-data-structure/persistent' ) ; // or import persistent from '@functional-data-structure/persistent' ; ``` diff --git a/package.json b/package.json index b336c5c..96f4f02 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "structures" ], "sideEffects": false, + "type": "module", "source": "src/index.js", "main": "dist/index.cjs", "module": "dist/index.module.js",