developit / karmatic

🦑 Easy automatic (headless) browser testing with Jest's API, but powered by Karma & Webpack.
https://npm.im/karmatic
1.18k stars 42 forks source link

Only build karmatic entry points #61

Closed andrewiggins closed 4 years ago

andrewiggins commented 4 years ago

If I understand correctly the only two entry points for karmatic are the cli (cli.js) and package main (index.js). So I've updated our microbundle script to only build our entrypoints. Since we are only building our entry points it cuts our package size in half.

marvinhagemeister commented 4 years ago

I think there is something wrong with the bundling config. Looking at the logs it seems like we don't bundle up karmatic into a single file.

andrewiggins commented 4 years ago

Oh, yup. We refer to the appender.js file in the karma config

andrewiggins commented 4 years ago

@developit Just want to double check with you there wasn't a reason we don't know about for shipping configure.js as a separate file in the karmatic bundle