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 31b91d5..2e4dedc 100644 --- a/doc/manual/usage.md +++ b/doc/manual/usage.md @@ -5,14 +5,14 @@ First, require the polyfill at the entry point of your application ```js -require( 'regenerator-runtime/runtime' ); +await import( 'regenerator-runtime/runtime.js' ); // or import 'regenerator-runtime/runtime.js' ; ``` Then, import the library where needed ```js -const poset = require( '@partial-order/poset' ) ; +const poset = await import( '@partial-order/poset' ) ; // or import * as poset from '@partial-order/poset' ; ``` diff --git a/package.json b/package.json index f4a1cf2..cc52a9e 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "template" ], "sideEffects": false, + "type": "module", "source": "src/index.js", "main": "dist/index.cjs", "module": "dist/index.module.js",