1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-08 07:07:15 +02:00

Fix the build to make @loadable work

This commit is contained in:
Phuoc Nguyen
2019-11-25 00:29:05 +07:00
parent 837f1eff58
commit efc9046824
2 changed files with 6 additions and 8 deletions

View File

@@ -26,11 +26,6 @@ module.exports = {
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel-loader',
},
{
test: /\.css$/,
use: ['style-loader', 'css-loader'],
@@ -38,7 +33,9 @@ module.exports = {
{
test: /\.ts(x?)$/,
exclude: /node_modules/,
use: 'ts-loader',
// The order of loaders are very important
// It will make the @loadable/component work
use: ['babel-loader', 'ts-loader'],
},
{
enforce: "pre",