-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path@preact__signals-core.patch
45 lines (44 loc) · 1.52 KB
/
@preact__signals-core.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
diff --git a/package.json b/package.json
index 7c1e02127f9b70d664f2945797485b617bedcebc..8de4a6340180e6c6f997020d66ccd8e12ee592b6 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,6 @@
{
"name": "@preact/signals-core",
+ "type": "module",
"version": "1.8.0",
"license": "MIT",
"description": "Manage state with style in every framework",
@@ -17,19 +18,13 @@
"type": "opencollective",
"url": "https://opencollective.com/preact"
},
- "amdName": "preactSignalsCore",
- "main": "dist/signals-core.js",
- "module": "dist/signals-core.module.js",
- "unpkg": "dist/signals-core.min.js",
- "types": "dist/signals-core.d.ts",
- "source": "src/index.ts",
"sideEffects": false,
"exports": {
".": {
- "types": "./dist/signals-core.d.ts",
- "browser": "./dist/signals-core.module.js",
- "import": "./dist/signals-core.mjs",
- "require": "./dist/signals-core.js"
+ "node": "./dist/signals-core.module.js",
+ "browser": "./src/index.ts",
+ "production": "./src/index.ts",
+ "types": "./src/index.ts"
}
},
"mangle": "../../mangle.json",
diff --git a/src/index.ts b/src/index.ts
index 5093f2afde4ff50aafde842d60c00a1b6986133d..caa64e80a4ea0cbc038010de31635990a9bb188a 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -830,4 +830,4 @@ function effect(fn: EffectFn): () => void {
return effect._dispose.bind(effect);
}
-export { computed, effect, batch, untracked, Signal, ReadonlySignal };
+export { computed, effect, batch, untracked, Signal, type ReadonlySignal };