Closed gismya closed 1 year ago
A simpler setup and vite seemed more targeted toward browser modules. I made a branch where I did a vite integration as well if you prefer.
There is also a rollup in between esbuild and vite.
Vite is using Rollup, so would probably be very similar. But it doesn't have the development server, so if we want to have a bundler setup similar to the other ones it probably makes more sense than Vite.
fixed ftrack/api made some changes to make it output es modules - check it out :)
don't forget to add NODE_TLS_REJECT_UNAUTHORIZED=0
before your command if you try this out again.
I had a working version with es modules already, but I landed in that commonjs is still the default for node, despite my personal preference in the matter. But I'm also okay with going for es modules with this, and then we'll add commonjs if it's needed in the future.
Changes
Adds a build pipeline with esbuild and sets up the NPM publish scripts.
Test
Does it build? Does it run? Will it publish?