1
0
mirror of https://gitee.com/vant-contrib/vant.git synced 2025-04-06 03:57:59 +08:00

feat: add exports fields to sub packages ()

This commit is contained in:
neverland 2022-05-29 21:48:59 +08:00 committed by GitHub
parent 79dfc4b8cb
commit 3606f48003
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 0 deletions
packages
vant-area-data
vant-popperjs
vant-use

@ -5,6 +5,12 @@
"main": "dist/index.cjs.js", "main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs", "module": "dist/index.esm.mjs",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.esm.mjs",
"require": "./dist/index.cjs.js"
}
},
"files": [ "files": [
"dist" "dist"
], ],

@ -5,6 +5,12 @@
"main": "dist/index.cjs.js", "main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs", "module": "dist/index.esm.mjs",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.esm.mjs",
"require": "./dist/index.cjs.js"
}
},
"sideEffects": false, "sideEffects": false,
"files": [ "files": [
"dist" "dist"

@ -5,6 +5,12 @@
"main": "dist/index.cjs.js", "main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs", "module": "dist/index.esm.mjs",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.esm.mjs",
"require": "./dist/index.cjs.js"
}
},
"sideEffects": false, "sideEffects": false,
"files": [ "files": [
"dist" "dist"