package.json兼容webpack5

This commit is contained in:
huangxuan 2023-12-01 16:18:03 +08:00
parent fdf34b3999
commit b587af88b5
No known key found for this signature in database
GPG Key ID: E79F50C67022565D
1 changed files with 9 additions and 1 deletions

View File

@ -24,5 +24,13 @@
"watch-test": "yarn test --watch --dev"
},
"files": ["build/**/*", "README.md"],
"types": "./build/@types/index.d.ts"
"types": "./build/@types/index.d.ts",
"exports": {
".": {
"default": "./index.js"
},
"./package.json":"./package.json",
"./jsx-runtime": "./jsx-runtime.js",
"./jsx-dev-runtime": "./jsx-dev-runtime.js"
}
}