smart-home-ui/babel.config.js

16 lines
440 B
JavaScript
Raw Normal View History

2026-04-02 14:11:48 +08:00
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
],
plugins: [
'@babel/plugin-proposal-optional-chaining',
],
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']
}
}
}