Skip to content

Commit

Permalink
fix(config): bring back babel loader
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyperkid123 committed Apr 1, 2021
1 parent 7227d46 commit 97c96bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/config/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ module.exports = ({
}, {
test: /src\/.*\.js$/,
enforce: 'pre',
use: [{ loader: 'source-map-loader' }]
use: [ 'source-map-loader' ]
}, {
test: /src\/.*\.js$/,
exclude: /(node_modules|bower_components)/i,
use: [ 'babel-loader' ]
}, {
test: /src\/.*\.tsx?$/,
loader: 'ts-loader',
Expand Down
2 changes: 1 addition & 1 deletion packages/config/src/config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ describe('module rules', () => {
const {
module
} = configBuilder({ appEntry: 'testEntry', appName: 'someName' });
expect(module.rules.length).toBe(6);
expect(module.rules.length).toBe(7);
});

test('first to be chrome-render-loader', () => {
Expand Down

0 comments on commit 97c96bf

Please sign in to comment.