How can I import a.js
and b.js
and export as combined bundle.js
in UMD format using rollupjs?
Here is the example:
//a.js
export default class A {
...
}
//b.js
export default class B {
...
}
My current rollup.config.js
is:
export default [
{
input: ["path/a.js", "path/b.js"],
output: {
file: "path/bundle.js",
format: "umd",
name: "Bundle"
},
plugins: [
// list of plugins
]
}
}
However, this is not working as intended.
Anything wrong with this config?
Thanks for your help.