Skip to content

Commit

Permalink
chore: remove vite config pinyin dep
Browse files Browse the repository at this point in the history
  • Loading branch information
richard1015 committed Oct 14, 2021
1 parent 951e17e commit 8a6ce08
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion vite.config.build.disperse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default defineConfig({
},
rollupOptions: {
// 请确保外部化那些你的库中不需要的依赖
external: ['vue', 'vue-router', 'pinyin'],
external: ['vue', 'vue-router'],
input,
output: {
banner,
Expand Down
2 changes: 1 addition & 1 deletion vite.config.build.taro.vue.disperse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default defineConfig({
},
rollupOptions: {
// 请确保外部化那些你的库中不需要的依赖
external: ['vue', 'vue-router', '@tarojs/taro', 'pinyin'],
external: ['vue', 'vue-router', '@tarojs/taro'],
input,
output: {
banner,
Expand Down
2 changes: 1 addition & 1 deletion vite.config.build.taro.vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default defineConfig({
},
rollupOptions: {
// 请确保外部化那些你的库中不需要的依赖
external: ['vue', 'vue-router', '@tarojs/taro', 'pinyin'],
external: ['vue', 'vue-router', '@tarojs/taro'],
output: {
banner,
// 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
Expand Down
10 changes: 2 additions & 8 deletions vite.config.build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@ export default defineConfig({
postcss: {
plugins: [
require('autoprefixer')({
overrideBrowserslist: [
'> 0.5%',
'last 2 versions',
'ie > 11',
'iOS >= 10',
'Android >= 5'
]
overrideBrowserslist: ['> 0.5%', 'last 2 versions', 'ie > 11', 'iOS >= 10', 'Android >= 5']
})
]
}
Expand All @@ -46,7 +40,7 @@ export default defineConfig({
},
rollupOptions: {
// 请确保外部化那些你的库中不需要的依赖
external: ['vue', 'vue-router', 'pinyin'],
external: ['vue', 'vue-router'],
output: {
banner,
// 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
Expand Down

0 comments on commit 8a6ce08

Please sign in to comment.