For that reason, I started running the tests off the transpiled build output. That works, but it requires adding concurrently to run builds on changes and run karma in watch mode. A bigger problem is that the tests themselves are ES6, so they have to be transpiled too, and there's not a karma preprocessor for buble, so I'm using the one for babel (see #12).
Ultimately the target consumers of this library are ember addons, which use babel to transpile, so might as well try to use the same preset, etc here.
So, at a high level:
replace rollup/buble w/ webpack/babel and verify that we can get a reasonable build size
Rollup/buble make it hard to test in a browser (i.e. w/ Karma vs tests that execute in node like w/ Ava). The crux of the problem is this https://github.com/jlmakes/karma-rollup-preprocessor/issues/17
For that reason, I started running the tests off the transpiled build output. That works, but it requires adding concurrently to run builds on changes and run karma in watch mode. A bigger problem is that the tests themselves are ES6, so they have to be transpiled too, and there's not a karma preprocessor for buble, so I'm using the one for babel (see #12).
Ultimately the target consumers of this library are ember addons, which use babel to transpile, so might as well try to use the same preset, etc here.
So, at a high level: