Skip to content

Commit

Permalink
Fix how to resolve the loaders #26
Browse files Browse the repository at this point in the history
  • Loading branch information
saltyshiomix committed Jun 19, 2020
1 parent ae02d88 commit 43e5181
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/optimize/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const configureWebpack = (entry: webpack.Entry): webpack.Configuration =>
test: /\.(js|ts)x?$/i,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
loader: require.resolve('babel-loader'),
options: {
cacheDirectory: true,
extends: getBabelrc(),
Expand All @@ -91,7 +91,7 @@ export const configureWebpack = (entry: webpack.Entry): webpack.Configuration =>
},
},
{
loader: 'css-loader',
loader: require.resolve('css-loader'),
},
],
},
Expand All @@ -107,10 +107,10 @@ export const configureWebpack = (entry: webpack.Entry): webpack.Configuration =>
},
},
{
loader: 'css-loader',
loader: require.resolve('css-loader'),
},
{
loader: 'sass-loader',
loader: require.resolve('sass-loader'),
options: {
sourceMap: !isProd(),
},
Expand Down

0 comments on commit 43e5181

Please sign in to comment.