We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ae9e8af + b31171f commit 77028b0Copy full SHA for 77028b0
package.json
@@ -9,11 +9,12 @@
9
"type": "module",
10
"react-native": "./src/lib.react-native.js",
11
"main": "./src/lib.cjs",
12
- "module": "./src/lib.mjs",
+ "module": "./src/lib.js",
13
+ "browser": "./src/lib.js",
14
"types": "./src/lib.d.ts",
15
"exports": {
16
".": {
- "import": "./src/lib.mjs",
17
+ "import": "./src/lib.js",
18
"require": "./src/lib.cjs"
19
}
20
},
src/lib.mjs renamed to src/lib.js
test/test-lib.spec.js
@@ -1,4 +1,4 @@
1
-import { TextEncoder, TextDecoder } from "../src/lib.mjs"
+import { TextEncoder, TextDecoder } from "../src/lib.js"
2
import assert from "assert"
3
4
describe("text encode/decode", () => {
0 commit comments