Skip to content

Commit 77028b0

Browse files
authored
fix: fix exports again
2 parents ae9e8af + b31171f commit 77028b0

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
"type": "module",
1010
"react-native": "./src/lib.react-native.js",
1111
"main": "./src/lib.cjs",
12-
"module": "./src/lib.mjs",
12+
"module": "./src/lib.js",
13+
"browser": "./src/lib.js",
1314
"types": "./src/lib.d.ts",
1415
"exports": {
1516
".": {
16-
"import": "./src/lib.mjs",
17+
"import": "./src/lib.js",
1718
"require": "./src/lib.cjs"
1819
}
1920
},

src/lib.mjs renamed to src/lib.js

File renamed without changes.

test/test-lib.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TextEncoder, TextDecoder } from "../src/lib.mjs"
1+
import { TextEncoder, TextDecoder } from "../src/lib.js"
22
import assert from "assert"
33

44
describe("text encode/decode", () => {

0 commit comments

Comments
 (0)