Skip to content

Commit

Permalink
Set "type": "module" to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
inokawa committed May 7, 2024
1 parent 7dfc042 commit 8656307
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .size-limit.json
Original file line number Diff line number Diff line change
@@ -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"
}
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
File renamed without changes.

0 comments on commit 8656307

Please sign in to comment.