升级 rollup 2.64.0

This commit is contained in:
就眠儀式 2022-01-18 14:20:59 +08:00
parent c8004afc33
commit 96a11ffd69
3 changed files with 7 additions and 6 deletions

View File

@ -20,7 +20,7 @@
<li>[新增] tab-item 选项卡组件 closable 属性, 控制当前选项卡 close 支持。</li>
<li>[修复] button 按钮 disabled 为 true 时, 触发 click 事件。</li>
<li>[修复] menu-item 与 sub-menu 组件的 title 属性必填警告。</li>
<li>[升级] vite 2.7.12。</li>
<li>[升级] rollup 2.64.0。</li>
<li>[升级] vue 3.2.27。</li>
</ul>
</li>

View File

@ -24,12 +24,12 @@
"scripts": {
"dev": "vite",
"build": "vite build --emptyOutDir && npm run build:types",
"build:es": "es use",
"build:umd": "umd use",
"build:types": "rimraf types && tsc -d",
"build:example": "vite build example",
"lint:eslint": "eslint 'src/**/*.{vue,ts,tsx}' --fix",
"lint:prettier": "prettier --write 'src/**/*'",
"commit": "git cz",
"prepublishOnly": "npm run build"
"lint:prettier": "prettier --write 'src/**/*'"
},
"dependencies": {
"@layui/hooks-vue": "^0.1.6",
@ -66,7 +66,7 @@
"prettier": "^2.5.1",
"prismjs": "^1.25.0",
"rimraf": "^3.0.2",
"rollup": "^2.61.0",
"rollup": "^2.64.0",
"typescript": "^4.5.2",
"vite": "2.7.12",
"vite-plugin-md": "^0.11.6"

View File

@ -30,11 +30,12 @@ export default defineConfig({
assetFileNames: 'index.css',
},
plugins: [
// @ts-ignore
babel({
exclude: 'node_modules/**',
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue'],
presets: ['@babel/preset-env', '@babel/preset-typescript'],
}),
})
],
external: ['vue', 'vue-router'],
},