diff --git a/packages/uni-cli-shared/package.json b/packages/uni-cli-shared/package.json index 8196d1c72fae7e2f18c13cc6c69c2165fa853b7b..d34f93e7f8eee89e24fd77186c976c7a09abf60b 100644 --- a/packages/uni-cli-shared/package.json +++ b/packages/uni-cli-shared/package.json @@ -29,6 +29,7 @@ "@vue/compiler-sfc": "3.2.29", "@vue/server-renderer": "3.2.29", "@vue/shared": "3.2.29", + "autoprefixer": "^10.4.2", "base64url": "^3.0.1", "chokidar": "^3.5.2", "compare-versions": "^3.6.0", diff --git a/packages/uni-cli-shared/src/postcss/index.ts b/packages/uni-cli-shared/src/postcss/index.ts index 9cf663857036fd0399b5e77ee8e53ad5530f2058..951fe13611606091e72ccb1ff70a6466c21654cd 100644 --- a/packages/uni-cli-shared/src/postcss/index.ts +++ b/packages/uni-cli-shared/src/postcss/index.ts @@ -1,4 +1,20 @@ +import type { Plugin } from 'postcss' +import type { Options } from 'autoprefixer' import uniPostcssScopedPlugin from './plugins/stylePluginScoped' -import uniPostcssPlugin from './plugins/uniapp' +import uniPostcssPlugin, { UniAppCssProcessorOptions } from './plugins/uniapp' export { uniPostcssPlugin } export { uniPostcssScopedPlugin } +export function initPostcssPlugin({ + uniApp, + autoprefixer, +}: { + uniApp?: UniAppCssProcessorOptions + autoprefixer?: Options | false +} = {}): Plugin[] { + const plugins: Plugin[] = [uniPostcssPlugin(uniApp)] + // nvue 不需要 autoprefixer + if (autoprefixer !== false) { + plugins.push(require('autoprefixer')(autoprefixer)) + } + return plugins +} diff --git a/packages/uni-cli-shared/src/postcss/plugins/uniapp.ts b/packages/uni-cli-shared/src/postcss/plugins/uniapp.ts index 604de20c24117b7cfc1dbdb1d64bba43463652fd..d9a8b2e64c8650b9bbf457f5ca01c4d1049b77f6 100644 --- a/packages/uni-cli-shared/src/postcss/plugins/uniapp.ts +++ b/packages/uni-cli-shared/src/postcss/plugins/uniapp.ts @@ -7,10 +7,8 @@ import { isBuiltInComponent, COMPONENT_SELECTOR_PREFIX, } from '@dcloudio/uni-shared' -import { parseRpx2UnitOnce } from '../../json/manifest' -interface UniAppCssProcessorOptions { - page?: string +export interface UniAppCssProcessorOptions { unit?: string // 目标单位,默认rem unitRatio?: number // 单位转换比例,默认10/320 unitPrecision?: number // 单位精度,默认5 @@ -121,14 +119,10 @@ const transforms: Record = { const uniapp = (opts?: UniAppCssProcessorOptions) => { const platform = process.env.UNI_PLATFORM - if (!opts) { - const inputDir = process.env.UNI_INPUT_DIR - opts = extend(parseRpx2UnitOnce(inputDir, platform)) - } const { unit, unitRatio, unitPrecision } = extend( {}, defaultUniAppCssProcessorOptions, - opts || {} + opts ) const rpx2unit = createRpx2Unit(unit, unitRatio, unitPrecision) return { diff --git a/packages/uni-components/src/vue/text/index.tsx b/packages/uni-components/src/vue/text/index.tsx index d1f2ddae7bc0fb9f8df2a86952240bc420ca096f..d9942c4caee4be356cb620e043823c2789800be8 100644 --- a/packages/uni-components/src/vue/text/index.tsx +++ b/packages/uni-components/src/vue/text/index.tsx @@ -1,4 +1,4 @@ -import { VNode, Component, createTextVNode, createVNode } from 'vue' +import { VNode, Component, createTextVNode, createVNode, Comment } from 'vue' import { defineBuiltInComponent } from '../../helpers/component' import { DecodeOptions, parseText } from '../../helpers/text' @@ -23,7 +23,10 @@ export default /*#__PURE__*/ defineBuiltInComponent({ const children: VNode[] = [] if (slots.default) { slots.default().forEach((vnode) => { - if (vnode.shapeFlag & 8 /* TEXT_CHILDREN */) { + if ( + vnode.shapeFlag & 8 /* TEXT_CHILDREN */ && + vnode.type !== Comment + ) { const lines = parseText(vnode.children as string, { space: props.space as DecodeOptions['space'], decode: props.decode as boolean, diff --git a/packages/uni-h5-vite/src/plugin/config.ts b/packages/uni-h5-vite/src/plugin/config.ts index d15adab748406a3699b68fe253c1585a5d377808..05f32f2926bf8006ec85dc2ace6319323ea3571c 100644 --- a/packages/uni-h5-vite/src/plugin/config.ts +++ b/packages/uni-h5-vite/src/plugin/config.ts @@ -7,6 +7,8 @@ import { getDevServerOptions, resolveMainPathOnce, parseManifestJsonOnce, + initPostcssPlugin, + parseRpx2UnitOnce, } from '@dcloudio/uni-cli-shared' import { createDefine, isSsr } from '../utils' import { esbuildPrePlugin } from './esbuild/esbuildPrePlugin' @@ -47,6 +49,13 @@ export function createConfig(options: { } return { + css: { + postcss: { + plugins: initPostcssPlugin({ + uniApp: parseRpx2UnitOnce(inputDir, process.env.UNI_PLATFORM), + }), + }, + }, optimizeDeps: { entries: resolveMainPathOnce(inputDir), exclude: external, diff --git a/packages/uni-h5/dist/uni-h5.cjs.js b/packages/uni-h5/dist/uni-h5.cjs.js index 1fcdc049de2674837e3bec040f2d3c2756c8f4ea..765b8f64d3b7a374d3dbd8beb0748aa2c62e7ed0 100644 --- a/packages/uni-h5/dist/uni-h5.cjs.js +++ b/packages/uni-h5/dist/uni-h5.cjs.js @@ -6381,7 +6381,7 @@ var index$j = /* @__PURE__ */ defineBuiltInComponent({ const children = []; if (slots.default) { slots.default().forEach((vnode) => { - if (vnode.shapeFlag & 8) { + if (vnode.shapeFlag & 8 && vnode.type !== vue.Comment) { const lines = parseText(vnode.children, { space: props2.space, decode: props2.decode diff --git a/packages/uni-h5/dist/uni-h5.es.js b/packages/uni-h5/dist/uni-h5.es.js index 7ad4b117a7f6d312dc6808db663d78f4d1604368..4c67fc1ad2ddcde92a0da67fbbef75dc0a1c969c 100644 --- a/packages/uni-h5/dist/uni-h5.es.js +++ b/packages/uni-h5/dist/uni-h5.es.js @@ -13231,7 +13231,7 @@ var index$j = /* @__PURE__ */ defineBuiltInComponent({ const children = []; if (slots.default) { slots.default().forEach((vnode) => { - if (vnode.shapeFlag & 8) { + if (vnode.shapeFlag & 8 && vnode.type !== Comment) { const lines = parseText(vnode.children, { space: props2.space, decode: props2.decode diff --git a/packages/uni-mp-vite/src/plugin/index.ts b/packages/uni-mp-vite/src/plugin/index.ts index 2933a0c787047bc782ed5db5deede38631ebd229..243bd553ecaf8b2f0042ada080c83911f136f429 100644 --- a/packages/uni-mp-vite/src/plugin/index.ts +++ b/packages/uni-mp-vite/src/plugin/index.ts @@ -8,6 +8,8 @@ import { parseManifestJsonOnce, findMiniProgramTemplateFiles, MiniProgramCompilerOptions, + initPostcssPlugin, + parseRpx2UnitOnce, } from '@dcloudio/uni-cli-shared' import type { SFCDescriptor, @@ -125,6 +127,16 @@ export function uniMiniProgramPlugin( }, preserveSymlinks: true, }, + css: { + postcss: { + plugins: initPostcssPlugin({ + uniApp: parseRpx2UnitOnce( + process.env.UNI_INPUT_DIR, + process.env.UNI_PLATFORM + ), + }), + }, + }, build: buildOptions(), } }, diff --git a/packages/uni-shared/dist/uni-shared.cjs.js b/packages/uni-shared/dist/uni-shared.cjs.js index cabdd2c7b65bbe6a9083b906ae54ea4eb78385ad..5bb85c9651bcea7d01c67570f29b7bc36247aadc 100644 --- a/packages/uni-shared/dist/uni-shared.cjs.js +++ b/packages/uni-shared/dist/uni-shared.cjs.js @@ -344,6 +344,7 @@ const defaultMiniProgramRpx2Unit = { unitRatio: 1, unitPrecision: 1, }; +const defaultNVueRpx2Unit = defaultMiniProgramRpx2Unit; function createRpx2Unit(unit, unitRatio, unitPrecision) { // ignore: rpxCalcIncludeWidth return (val) => val.replace(unitRE, (m, $1) => { @@ -1415,6 +1416,7 @@ exports.debounce = debounce; exports.decode = decode; exports.decodedQuery = decodedQuery; exports.defaultMiniProgramRpx2Unit = defaultMiniProgramRpx2Unit; +exports.defaultNVueRpx2Unit = defaultNVueRpx2Unit; exports.defaultRpx2Unit = defaultRpx2Unit; exports.dynamicSlotName = dynamicSlotName; exports.forcePatchProp = forcePatchProp; diff --git a/packages/uni-shared/dist/uni-shared.d.ts b/packages/uni-shared/dist/uni-shared.d.ts index ec1b5139421c31236cf2689354ae18e670835e35..9a790d7163a43a5af9510b6a288eaebda4818f75 100644 --- a/packages/uni-shared/dist/uni-shared.d.ts +++ b/packages/uni-shared/dist/uni-shared.d.ts @@ -148,6 +148,12 @@ export declare const defaultMiniProgramRpx2Unit: { unitPrecision: number; }; +export declare const defaultNVueRpx2Unit: { + unit: string; + unitRatio: number; + unitPrecision: number; +}; + export declare const defaultRpx2Unit: { unit: string; unitRatio: number; diff --git a/packages/uni-shared/dist/uni-shared.es.js b/packages/uni-shared/dist/uni-shared.es.js index e3527d566dd18710ff3bc5520a02a6e04fa1ac6f..f726888aae8a2d96ba4066120cbfe23f5dcd879f 100644 --- a/packages/uni-shared/dist/uni-shared.es.js +++ b/packages/uni-shared/dist/uni-shared.es.js @@ -340,6 +340,7 @@ const defaultMiniProgramRpx2Unit = { unitRatio: 1, unitPrecision: 1, }; +const defaultNVueRpx2Unit = defaultMiniProgramRpx2Unit; function createRpx2Unit(unit, unitRatio, unitPrecision) { // ignore: rpxCalcIncludeWidth return (val) => val.replace(unitRE, (m, $1) => { @@ -1299,4 +1300,4 @@ function getEnvLocale() { return (lang && lang.replace(/[.:].*/, '')) || 'en'; } -export { ACTION_TYPE_ADD_EVENT, ACTION_TYPE_ADD_WXS_EVENT, ACTION_TYPE_CREATE, ACTION_TYPE_EVENT, ACTION_TYPE_INSERT, ACTION_TYPE_PAGE_CREATE, ACTION_TYPE_PAGE_CREATED, ACTION_TYPE_PAGE_SCROLL, ACTION_TYPE_REMOVE, ACTION_TYPE_REMOVE_ATTRIBUTE, ACTION_TYPE_REMOVE_EVENT, ACTION_TYPE_SET_ATTRIBUTE, ACTION_TYPE_SET_TEXT, ATTR_CHANGE_PREFIX, ATTR_CLASS, ATTR_INNER_HTML, ATTR_STYLE, ATTR_TEXT_CONTENT, ATTR_V_OWNER_ID, ATTR_V_RENDERJS, ATTR_V_SHOW, BACKGROUND_COLOR, BUILT_IN_TAGS, BUILT_IN_TAG_NAMES, COMPONENT_NAME_PREFIX, COMPONENT_PREFIX, COMPONENT_SELECTOR_PREFIX, DATA_RE, EventChannel, EventModifierFlags, I18N_JSON_DELIMITERS, JSON_PROTOCOL, LINEFEED, MINI_PROGRAM_PAGE_RUNTIME_HOOKS, NAVBAR_HEIGHT, NODE_TYPE_COMMENT, NODE_TYPE_ELEMENT, NODE_TYPE_PAGE, NODE_TYPE_TEXT, NVUE_BUILT_IN_TAGS, NVUE_U_BUILT_IN_TAGS, NVueTextNode, ON_ADD_TO_FAVORITES, ON_APP_ENTER_BACKGROUND, ON_APP_ENTER_FOREGROUND, ON_BACK_PRESS, ON_ERROR, ON_HIDE, ON_KEYBOARD_HEIGHT_CHANGE, ON_LAUNCH, ON_LOAD, ON_NAVIGATION_BAR_BUTTON_TAP, ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED, ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED, ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED, ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED, ON_PAGE_NOT_FOUND, ON_PAGE_SCROLL, ON_PULL_DOWN_REFRESH, ON_REACH_BOTTOM, ON_REACH_BOTTOM_DISTANCE, ON_READY, ON_RESIZE, ON_SHARE_APP_MESSAGE, ON_SHARE_TIMELINE, ON_SHOW, ON_TAB_ITEM_TAP, ON_THEME_CHANGE, ON_UNHANDLE_REJECTION, ON_UNLOAD, ON_WEB_INVOKE_APP_SERVICE, ON_WXS_INVOKE_CALL_METHOD, PLUS_RE, PRIMARY_COLOR, RENDERJS_MODULES, RESPONSIVE_MIN_WIDTH, SCHEME_RE, SELECTED_COLOR, SLOT_DEFAULT_NAME, TABBAR_HEIGHT, TAGS, UNI_SSR, UNI_SSR_DATA, UNI_SSR_GLOBAL_DATA, UNI_SSR_STORE, UNI_SSR_TITLE, UNI_STORAGE_LOCALE, UniBaseNode, UniCommentNode, UniElement, UniEvent, UniInputElement, UniLifecycleHooks, UniNode, UniTextAreaElement, UniTextNode, WEB_INVOKE_APPSERVICE, WXS_MODULES, WXS_PROTOCOL, addFont, addLeadingSlash, cache, cacheStringFunction, callOptions, createIsCustomElement, createRpx2Unit, createUniEvent, customizeEvent, debounce, decode, decodedQuery, defaultMiniProgramRpx2Unit, defaultRpx2Unit, dynamicSlotName, forcePatchProp, formatAppLog, formatDateTime, formatH5Log, formatLog, getCustomDataset, getEnvLocale, getLen, getValueByDataPath, initCustomDataset, invokeArrayFns, isAppNVueNativeTag, isAppNativeTag, isBuiltInComponent, isComponentInternalInstance, isComponentTag, isH5CustomElement, isH5NativeTag, isMiniProgramNativeTag, isRootHook, normalizeDataset, normalizeEventType, normalizeTarget, once, parseEventName, parseQuery, parseUrl, passive, plusReady, removeLeadingSlash, resolveComponentInstance, resolveOwnerEl, resolveOwnerVm, sanitise, scrollTo, stringifyQuery, updateElementStyle }; +export { ACTION_TYPE_ADD_EVENT, ACTION_TYPE_ADD_WXS_EVENT, ACTION_TYPE_CREATE, ACTION_TYPE_EVENT, ACTION_TYPE_INSERT, ACTION_TYPE_PAGE_CREATE, ACTION_TYPE_PAGE_CREATED, ACTION_TYPE_PAGE_SCROLL, ACTION_TYPE_REMOVE, ACTION_TYPE_REMOVE_ATTRIBUTE, ACTION_TYPE_REMOVE_EVENT, ACTION_TYPE_SET_ATTRIBUTE, ACTION_TYPE_SET_TEXT, ATTR_CHANGE_PREFIX, ATTR_CLASS, ATTR_INNER_HTML, ATTR_STYLE, ATTR_TEXT_CONTENT, ATTR_V_OWNER_ID, ATTR_V_RENDERJS, ATTR_V_SHOW, BACKGROUND_COLOR, BUILT_IN_TAGS, BUILT_IN_TAG_NAMES, COMPONENT_NAME_PREFIX, COMPONENT_PREFIX, COMPONENT_SELECTOR_PREFIX, DATA_RE, EventChannel, EventModifierFlags, I18N_JSON_DELIMITERS, JSON_PROTOCOL, LINEFEED, MINI_PROGRAM_PAGE_RUNTIME_HOOKS, NAVBAR_HEIGHT, NODE_TYPE_COMMENT, NODE_TYPE_ELEMENT, NODE_TYPE_PAGE, NODE_TYPE_TEXT, NVUE_BUILT_IN_TAGS, NVUE_U_BUILT_IN_TAGS, NVueTextNode, ON_ADD_TO_FAVORITES, ON_APP_ENTER_BACKGROUND, ON_APP_ENTER_FOREGROUND, ON_BACK_PRESS, ON_ERROR, ON_HIDE, ON_KEYBOARD_HEIGHT_CHANGE, ON_LAUNCH, ON_LOAD, ON_NAVIGATION_BAR_BUTTON_TAP, ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED, ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED, ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED, ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED, ON_PAGE_NOT_FOUND, ON_PAGE_SCROLL, ON_PULL_DOWN_REFRESH, ON_REACH_BOTTOM, ON_REACH_BOTTOM_DISTANCE, ON_READY, ON_RESIZE, ON_SHARE_APP_MESSAGE, ON_SHARE_TIMELINE, ON_SHOW, ON_TAB_ITEM_TAP, ON_THEME_CHANGE, ON_UNHANDLE_REJECTION, ON_UNLOAD, ON_WEB_INVOKE_APP_SERVICE, ON_WXS_INVOKE_CALL_METHOD, PLUS_RE, PRIMARY_COLOR, RENDERJS_MODULES, RESPONSIVE_MIN_WIDTH, SCHEME_RE, SELECTED_COLOR, SLOT_DEFAULT_NAME, TABBAR_HEIGHT, TAGS, UNI_SSR, UNI_SSR_DATA, UNI_SSR_GLOBAL_DATA, UNI_SSR_STORE, UNI_SSR_TITLE, UNI_STORAGE_LOCALE, UniBaseNode, UniCommentNode, UniElement, UniEvent, UniInputElement, UniLifecycleHooks, UniNode, UniTextAreaElement, UniTextNode, WEB_INVOKE_APPSERVICE, WXS_MODULES, WXS_PROTOCOL, addFont, addLeadingSlash, cache, cacheStringFunction, callOptions, createIsCustomElement, createRpx2Unit, createUniEvent, customizeEvent, debounce, decode, decodedQuery, defaultMiniProgramRpx2Unit, defaultNVueRpx2Unit, defaultRpx2Unit, dynamicSlotName, forcePatchProp, formatAppLog, formatDateTime, formatH5Log, formatLog, getCustomDataset, getEnvLocale, getLen, getValueByDataPath, initCustomDataset, invokeArrayFns, isAppNVueNativeTag, isAppNativeTag, isBuiltInComponent, isComponentInternalInstance, isComponentTag, isH5CustomElement, isH5NativeTag, isMiniProgramNativeTag, isRootHook, normalizeDataset, normalizeEventType, normalizeTarget, once, parseEventName, parseQuery, parseUrl, passive, plusReady, removeLeadingSlash, resolveComponentInstance, resolveOwnerEl, resolveOwnerVm, sanitise, scrollTo, stringifyQuery, updateElementStyle }; diff --git a/packages/uni-shared/src/dom/style.ts b/packages/uni-shared/src/dom/style.ts index 07607070c53861433d3610bae8d5a23cd42f03c2..a09ce11622b28712d1b802dac89875ad707d2ec4 100644 --- a/packages/uni-shared/src/dom/style.ts +++ b/packages/uni-shared/src/dom/style.ts @@ -21,6 +21,8 @@ export const defaultMiniProgramRpx2Unit = { unitPrecision: 1, } +export const defaultNVueRpx2Unit = defaultMiniProgramRpx2Unit + export type Rpx2UnitOptions = typeof defaultRpx2Unit export function createRpx2Unit( diff --git a/packages/vite-plugin-uni/src/config/css.ts b/packages/vite-plugin-uni/src/config/css.ts index ba7f5dca64eb66274067882b5a6979c1846cb0bd..e9858c32a919bc1542513e3000f736e5525d78b4 100644 --- a/packages/vite-plugin-uni/src/config/css.ts +++ b/packages/vite-plugin-uni/src/config/css.ts @@ -13,19 +13,11 @@ function resolveAdditionalData(inputDir: string, config: UserConfig) { return fs.readFileSync(uniScssFile, 'utf8') + '\n' + userAdditionalData } -function resolvePostcssConfig(inputDir: string) { - return [ - path.resolve(inputDir, 'postcss.config.js'), - path.resolve(process.cwd(), 'postcss.config.js'), - ].find((file) => fs.existsSync(file)) -} - export function createCss( options: VitePluginUniResolvedOptions, config: UserConfig ): UserConfig['css'] { return { - postcss: resolvePostcssConfig(options.inputDir), preprocessorOptions: { scss: { charset: false, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 07e1bf6e91af70de8c460a9ad6515b0b683d975c..d42c86909cf7b2087314e393ad5be30e6aa8d59f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -287,6 +287,7 @@ importers: '@vue/compiler-sfc': 3.2.29 '@vue/server-renderer': 3.2.29 '@vue/shared': 3.2.29 + autoprefixer: ^10.4.2 base64url: ^3.0.1 chokidar: ^3.5.2 compare-versions: ^3.6.0 @@ -323,6 +324,7 @@ importers: '@vue/compiler-sfc': 3.2.29 '@vue/server-renderer': 3.2.29_vue@3.2.29 '@vue/shared': 3.2.29 + autoprefixer: 10.4.2_postcss@8.4.5 base64url: 3.0.1 chokidar: 3.5.2 compare-versions: 3.6.0 @@ -3521,6 +3523,22 @@ packages: postcss-value-parser: 4.2.0 dev: true + /autoprefixer/10.4.2_postcss@8.4.5: + resolution: {integrity: sha512-9fOPpHKuDW1w/0EKfRmVnxTDt8166MAnLI3mgZ1JCnhNtYWxcJ6Ud5CO/AVOZi/AvFa8DY9RTy3h3+tFBlrrdQ==} + engines: {node: ^10 || ^12 || >=14} + hasBin: true + peerDependencies: + postcss: ^8.1.0 + dependencies: + browserslist: 4.19.1 + caniuse-lite: 1.0.30001301 + fraction.js: 4.1.2 + normalize-range: 0.1.2 + picocolors: 1.0.0 + postcss: 8.4.5 + postcss-value-parser: 4.2.0 + dev: false + /aws-sign2/0.7.0: resolution: {integrity: sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=} dev: true @@ -3801,7 +3819,6 @@ packages: escalade: 3.1.1 node-releases: 2.0.1 picocolors: 1.0.0 - dev: true /bs-logger/0.2.6: resolution: {integrity: sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==} @@ -3883,7 +3900,6 @@ packages: /caniuse-lite/1.0.30001301: resolution: {integrity: sha512-csfD/GpHMqgEL3V3uIgosvh+SVIQvCh43SNu9HRbP1lnxkKm1kjDG4f32PP571JplkLjfS+mg2p1gxR7MYrrIA==} - dev: true /caseless/0.12.0: resolution: {integrity: sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=} @@ -4500,7 +4516,6 @@ packages: /electron-to-chromium/1.4.52: resolution: {integrity: sha512-JGkh8HEh5PnVrhU4HbpyyO0O791dVY6k7AdqfDeqbcRMeoGxtNHWT77deR2nhvbLe4dKpxjlDEvdEwrvRLGu2Q==} - dev: true /elliptic/6.5.4: resolution: {integrity: sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==} @@ -5310,7 +5325,6 @@ packages: /fraction.js/4.1.2: resolution: {integrity: sha512-o2RiJQ6DZaR/5+Si0qJUIy637QMRudSi9kU/FFzx9EZazrIdnBgpU+3sEWCxAVhH2RtxW2Oz+T4p2o8uOPVcgA==} - dev: true /fresh/0.5.2: resolution: {integrity: sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=} @@ -7051,7 +7065,6 @@ packages: /normalize-range/0.1.2: resolution: {integrity: sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=} engines: {node: '>=0.10.0'} - dev: true /npm-run-path/2.0.2: resolution: {integrity: sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=} diff --git a/scripts/checkVersion.js b/scripts/checkVersion.js index 5a3d32536d603e9d4a4b92d9b15e019ea8855916..123937452ee52e82f197001087686d5c9c3287d8 100644 --- a/scripts/checkVersion.js +++ b/scripts/checkVersion.js @@ -25,7 +25,7 @@ const pkgs = { latest: '2.7.13', }, '@vitejs/plugin-vue': { - latest: '2.0.1', + latest: '2.1.0', }, '@vitejs/plugin-vue-jsx': { latest: '1.3.3',