-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pipe preprocessors #36
Comments
You'll need to use a browserify transform rather than a preprocessor |
Ok Ben, thanks for you answer. Cheers |
Seems like es6-browserify should work fine. Preprocessors can normally be chained but the way karma-bro works is a bit of a hack. It has to insert a bundle file as a framework, but Karma does not give frameworks the ability to perform async operations. So instead it needs to insert a shim file that later is added to the karma files array and later receives the bundled code. It also reads the files directly versus grabbing Karma's representation of them. |
This will hold, by the way, for anything you want to change with your code. Once you're using Browserify, you need to use transforms. If you wanted to use Istanbul, for example, you'd use a transform and not a preprocessor. |
Hello,
I tried karma-bro and it occurs that if I use
the file returned by browserify preprocessor is not the one processed by other-preprocessor but the original file
src/index.js
browserified.Have you ever had this use case? (in my case, 'other-preprocessor' is a es6-transpiler).
Cheers,
The text was updated successfully, but these errors were encountered: