https://github.com/storybookjs/storybook/issues/5298
https://github.com/webpack/webpack/issues/4039
https://github.com/gmfe/Think/issues/67

Cannot assign to read only property ‘exports’ of object ‘#

babel.config.js

 'sourceType': 'unambiguous', // 自动推断编译的模块类型(cjs,es6)  
 'ignore': [/@babel[/\\]runtime/], // 忽略 @babel/runtime

Full code

  
module.exports = {  
  'sourceType': 'unambiguous', // 自动推断编译的模块类型(cjs,es6)  
  'ignore': [/@babel[/\\]runtime/], // 忽略 @babel/runtime  
  presets: [  
    '@vue/app'  
  ]  
}