diff --git a/.size-limit.json b/.size-limit.json index af26700..5b9f623 100644 --- a/.size-limit.json +++ b/.size-limit.json @@ -1,19 +1,19 @@ [ { "name": "RichTextarea", - "path": "lib/index.mjs", + "path": "lib/index.js", "import": "{ RichTextarea }", "limit": "3 kB" }, { "name": "experimental_RichInput", - "path": "lib/index.mjs", + "path": "lib/index.js", "import": "{ experimental_RichInput }", "limit": "3.5 kB" }, { "name": "createRegexRenderer", - "path": "lib/index.mjs", + "path": "lib/index.js", "import": "{ createRegexRenderer }", "limit": "1.5 kB" } diff --git a/package.json b/package.json index 4f3c51d..3abd83c 100644 --- a/package.json +++ b/package.json @@ -3,14 +3,15 @@ "version": "0.24.4", "description": "A small customizable textarea for React to colorize, highlight, decorate texts, offer autocomplete and much more.", "main": "lib/index.js", - "module": "lib/index.mjs", + "module": "lib/index.cjs", "types": "lib/index.d.ts", + "type": "module", "exports": { "./package.json": "./package.json", ".": { "types": "./lib/index.d.ts", - "import": "./lib/index.mjs", - "default": "./lib/index.js" + "import": "./lib/index.js", + "default": "./lib/index.cjs" } }, "files": [ diff --git a/rollup.config.mjs b/rollup.config.js similarity index 100% rename from rollup.config.mjs rename to rollup.config.js