Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vue.js/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vue.js 如何使用具有导出默认值(){}的代码汇总.js文件?_Vue.js_Webpack_Rollup_Rollupjs_Quasar Framework - Fatal编程技术网

Vue.js 如何使用具有导出默认值(){}的代码汇总.js文件?

Vue.js 如何使用具有导出默认值(){}的代码汇总.js文件?,vue.js,webpack,rollup,rollupjs,quasar-framework,Vue.js,Webpack,Rollup,Rollupjs,Quasar Framework,我有一个.js文件,其中包含以下代码 export default (vueInst, obj, events) => { for (const eventName of events) { ... } } 错误 中的Function.missingTransform处出错 /node_modules/buble/dist/buble.cjs.js:376:9 此文件存在于带有UI工具包的我的quasar应用程序扩展名中。但当我运行Thread build时,它会给出错误

我有一个.js文件,其中包含以下代码

export default (vueInst, obj, events) => {
  for (const eventName of events) {
    ...
  }
}
错误

中的Function.missingTransform处出错 /node_modules/buble/dist/buble.cjs.js:376:9

此文件存在于带有UI工具包的我的quasar应用程序扩展名中。但当我运行Thread build时,它会给出错误,因为并没有插件可以用上面的代码汇总这个.js文件

我应该使用哪个插件来汇总这些文件

以下是我当前的rollupPlugins:

const rollupPlugins = [
  nodeResolve({
    extensions: ['.js'],
    preferBuiltins: false
  }),
  json(),
  VuePlugin(),
  buble({
    objectAssign: 'Object.assign'
  })
]

错误是什么?
在/node_modules/buble/dist/buble.cjs:376:9中的Function.missingTransform出现错误,这是正常的esmodule代码?你能在回购协议中发布你的完整代码来看看吗?实际上我还没有启动存储库。但是这个js文件只有那么多代码。里面有更简单的2-3行。代码是正确的,但我想我需要一个可以滚动.js文件的rollup插件。错误可能来自bubleplugin,尝试注释掉其他插件,看看它们之间是否有冲突?