diff --git a/package.json b/package.json index f1ba9af25b..e62f1cf98f 100644 --- a/package.json +++ b/package.json @@ -2,26 +2,28 @@ "name": "@formio/js", "version": "5.0.0-rc.71", "description": "JavaScript powered Forms with JSON Form Builder", + "type": "module", + "module": "lib/mjs/index.js", "main": "lib/cjs/index.js", "exports": { ".": { - "import": "./lib/cjs/index.js", + "import": "./lib/mjs/index.js", "require": "./lib/cjs/index.js" }, "./sdk": { - "import": "./lib/cjs/Formio.js", + "import": "./lib/mjs/Formio.js", "require": "./lib/cjs/Formio.js" }, "./utils": { - "import": "./lib/cjs/utils/index.js", + "import": "./lib/mjs/utils/index.js", "require": "./lib/cjs/utils/index.js" }, "./form": { - "import": "./lib/cjs/formio.form.js", + "import": "./lib/mjs/formio.form.js", "require": "./lib/cjs/formio.form.js" }, "./embed": { - "import": "./lib/cjs/InlineEmbed.js", + "import": "./lib/mjs/InlineEmbed.js", "require": "./lib/cjs/InlineEmbed.js" }, "./dist/*": "./dist/*"