Skip to content

Commit

Permalink
Merge pull request #665 from redwoodjs/pp-fix-auto-imports-windows
Browse files Browse the repository at this point in the history
Fix windows matching paths in babel.
  • Loading branch information
peterp committed Jun 8, 2020
2 parents d27def4 + 374a668 commit cfbb5bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/config/babel-preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ module.exports = () => ({
// Automatically import files in `./web/src/pages/*` in to
// the `./web/src/Routes.[ts|jsx]` file.
{
test: /\/web\/src\/Routes.(js|tsx)$/,
test: ['./web/src/Routes.js', './web/src/Routes.tsx'],
plugins: [require('../dist/babel-plugin-redwood-routes-auto-loader')],
},
],
Expand Down

0 comments on commit cfbb5bb

Please sign in to comment.