Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2255b20

Browse files
committed
(pkg/types): export typings and CJS builds
- typings now output for TS devs, who overlap a lot with MobX devs!- ESM build now hidden behind `module`, while CJS dev and prod builds are under `main`- CJS appears to still be necessary per#3, but not necessarily for browser support, for _test_ support it's also necessary - unless one is transpiling node_modules or using the `esm` package, Node's support for ESM is still behind a flag / not in LTS - also it may not support `module` field per docs? might need .mjs?
1 parentf6ba720 commit2255b20

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎package.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"name":"mst-persist",
33
"version":"0.0.2",
44
"description":"Persist and hydrate MobX-state-tree stores",
5-
"main":"dist/mst-persist.esm.js",
5+
"main":"dist/index.js",
6+
"module":"dist/mst-persist.esm.js",
7+
"typings":"dist/index.d.ts",
68
"files": [
79
"dist/"
810
],

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp