Skip to content

Commit

Permalink
Merge pull request #143 from inokawa/type-module
Browse files Browse the repository at this point in the history
Set "type": "module" to package.json
  • Loading branch information
inokawa authored May 7, 2024
2 parents e13874c + 2b27532 commit e6b9ee5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 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
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
"name": "rich-textarea",
"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",
"main": "lib/index.cjs",
"module": "lib/index.js",
"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 e6b9ee5

Please sign in to comment.