Skip to content

Commit 6365d0f

Browse files
committed
Fix regexp to test regexps in tools.
Without this commit we've got `{ test: /\.json$/, loader: 'react-hot!json' }` and it should be just as `{ test: /\.json$/, loader: 'json' }`
1 parent 94440af commit 6365d0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

webpack/strategies/docs-development.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default (config, options) => {
1717
}),
1818
module: _.extend({}, config.module, {
1919
loaders: config.module.loaders.map(value => {
20-
if (/js/.test(value.test.toString())) {
20+
if (/\.js\/$/.test(value.test.toString())) {
2121
return _.extend({}, value, {
2222
loader: 'react-hot!' + value.loader
2323
});

0 commit comments

Comments
 (0)