Skip to content

Commit 638a1ee

Browse files
committed
add umd build, add fields for module, unpkgs, jsdelivr to final package.json
1 parent 46bbabb commit 638a1ee

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"@pika/pack": "0.5.0",
4747
"@pika/plugin-build-node": "0.7.1",
4848
"@pika/plugin-build-types": "0.7.1",
49+
"@pika/plugin-build-umd": "^0.7.1",
4950
"@pika/plugin-build-web": "0.7.1",
5051
"@pika/plugin-bundle-types": "0.7.1",
5152
"@pika/plugin-standard-pkg": "0.7.1",

packages/react-async/package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,17 @@
3535
"@pika/plugin-build-node"
3636
],
3737
[
38-
"@pika/plugin-build-web"
38+
"@pika/plugin-build-web",
39+
{
40+
"entrypoint": [
41+
"module",
42+
"unpkg",
43+
"jsdelivr"
44+
]
45+
}
46+
],
47+
[
48+
"@pika/plugin-build-umd"
3949
],
4050
[
4151
"@pika/plugin-bundle-types"

0 commit comments

Comments
 (0)