Files
MES/yawei-mes/mes-ui/babel.config.js

21 lines
618 B
JavaScript
Raw Permalink Normal View History

2026-04-02 10:38:23 +08:00
module.exports = {
presets: [
// https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
'@vue/cli-plugin-babel/preset'
],
plugins: [
// Vant 按需引入配置
['import', {
libraryName: 'vant',
libraryDirectory: 'es',
style: true
}, 'vant']
],
'env': {
'development': {
// babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
// This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
'plugins': ['dynamic-import-node']
}
}
}