mathieudutour
Hi! I'm trying to use WebUI and am coming across this error:
TypeError: undefined is not a constructor (evaluating `new WebUI`)
I know it has to do with how I'm compiling my code... I just can't figure out what I'm doing wrong. This is the compilation function in my gulp.js file:
gulp.task('rollup', () => {
return rollup.rollup({
entry: path.join(path.resolve(), 'src/main.js'),
plugins: [
babel(), // Should I be using more than just babel here?
]
}).then((bundle) => {
return bundle.write({
dest: path.join(filesPath, 'main.js'),
format: 'cjs',
});
});
});
I'm pretty new to writing Sketch Plugins, so any piece of info would be greatly appreciated.
Thank you!
- Aaron