2.4.4
Windows 10 / 67.0.3396.99
2.5.16
https://github.com/lyzs90/element-ui-bug-repro
Follow on demand import of Element components guide (http://element.eleme.io/#/en-US/component/quickstart) then run yarn build
Build should be successful
Build fails with error: Plugin/Preset files are not allowed to export objects, only functions.
babel.config.js
module.exports = {
- presets: ['@vue/app', ['es2015', { modules: false }]],
+ presets: ['@vue/app'],
plugins: [
[
'component',
{
libraryName: 'element-ui',
styleLibraryName: 'theme-chalk'
}
]
]
};
This would be great to mention in the Quick Start.
Most helpful comment
babel.config.js