-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add babel-plugin-webpack-loaders #3
Conversation
Allows you to run code with non js imports, without webpack preprocessing step or require mocks.
Can you add a short description on how it's relevant to AVA? |
A lot of developers use The problem with test tools like mocha, ava, etc... that you can't test import myCssModuleClasses from 'myStyle.css';
...
<Blabla className={myCssModuleClasses.blabla} />
To run test on such file, you need to preprocess it with
With this plugin, example above can be tested as usual. So this plugin is not directly relevant to One of the issue when I released this plugin, Now it supports |
Also small article about http://browniefed.com/blog/2016/01/31/css-modules-webpack-and-testing/ |
What about including that plugin internally same way as power-assert and similar? This would most probably require to be enabled in configuration as not everyone would want it. However in my opinion it's good way to go at least until full webpack support is finished. |
Sorry, totally forgot about this PR. |
@@ -42,6 +42,7 @@ | |||
## Miscellaneous | |||
|
|||
- [Stickers](https://www.stickermule.com/user/1070705604/stickers) | |||
- [babel-plugin-webpack-loaders](https://github.com/istarkov/babel-plugin-webpack-loaders) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a succinct description?
ping @istarkov |
babel-plugin-webpack-loaders allows you to run code with non js imports, without webpack preprocessing step or require mocks.
Compatible with AVA https://github.com/istarkov/babel-plugin-webpack-loaders#dynamic-config-path