diff --git a/packages/varlet-cli/package.json b/packages/varlet-cli/package.json index 46bd34b7e26..e937c3453e8 100644 --- a/packages/varlet-cli/package.json +++ b/packages/varlet-cli/package.json @@ -33,7 +33,6 @@ "gitHead": "7638540be5f5159578bc7a616e365f1bb6d0494f", "dependencies": { "@babel/core": "^7.14.8", - "@babel/plugin-transform-runtime": "^7.14.5", "@babel/preset-env": "^7.14.8", "@babel/preset-typescript": "^7.14.5", "@commitlint/cli": "^11.0.0", diff --git a/packages/varlet-cli/src/config/webpack.base.config.ts b/packages/varlet-cli/src/config/webpack.base.config.ts index f3b61ecffa1..0b352d575d8 100644 --- a/packages/varlet-cli/src/config/webpack.base.config.ts +++ b/packages/varlet-cli/src/config/webpack.base.config.ts @@ -64,7 +64,16 @@ export const BASE_CONFIG = { rules: [ { test: /\.vue$/, - use: ['vue-loader'], + use: [ + { + loader: 'vue-loader', + options: { + compilerOptions: { + preserveWhitespace: false, + }, + }, + }, + ], }, { test: /\.(js|ts|jsx|tsx)$/, diff --git a/packages/varlet-ui/package.json b/packages/varlet-ui/package.json index 0cc200dc5ac..67092930537 100644 --- a/packages/varlet-ui/package.json +++ b/packages/varlet-ui/package.json @@ -43,16 +43,16 @@ "test:watch": "varlet-cli jest -w" }, "peerDependencies": { - "vue": "^3.1.4" + "vue": "^3.0.0" }, "gitHead": "04cbbd571a061f5d5651515132a8ef079de5673e", "devDependencies": { "@varlet/cli": "^1.13.3" }, "dependencies": { - "@babel/runtime": "^7.13.10", "@varlet/icons": "^1.0.0", "dayjs": "^1.10.4", "decimal.js": "^10.2.1" - } + }, + "browserslist": ["Chrome >= 51", "iOS >= 10"] } diff --git a/yarn.lock b/yarn.lock index e83f500c7bc..b543919d278 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1034,18 +1034,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-runtime@^7.14.5": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.14.5.tgz#30491dad49c6059f8f8fa5ee8896a0089e987523" - integrity sha512-fPMBhh1AV8ZyneiCIA+wYYUH1arzlXR1UMcApjvchDhfKxhy2r2lReJv8uHEyihi4IFIGlr1Pdx7S5fkESDQsg== - dependencies: - "@babel/helper-module-imports" "^7.14.5" - "@babel/helper-plugin-utils" "^7.14.5" - babel-plugin-polyfill-corejs2 "^0.2.2" - babel-plugin-polyfill-corejs3 "^0.2.2" - babel-plugin-polyfill-regenerator "^0.2.2" - semver "^6.3.0" - "@babel/plugin-transform-shorthand-properties@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.14.5.tgz#97f13855f1409338d8cadcbaca670ad79e091a58" @@ -1219,13 +1207,6 @@ dependencies: regenerator-runtime "^0.13.4" -"@babel/runtime@^7.13.10": - version "7.13.10" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.13.10.tgz#47d42a57b6095f4468da440388fdbad8bebf0d7d" - integrity sha512-4QPkjJq6Ns3V/RgpEahRk+AGfL0eO6RHHtTWoNNr5mO49G6B5+X6d6THgWEAvTrznU5xYpbAlVKRYcsCgh/Akw== - dependencies: - regenerator-runtime "^0.13.4" - "@babel/template@^7.0.0", "@babel/template@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.14.5.tgz#a9bc9d8b33354ff6e55a9c60d1109200a68974f4"