Commit 16579618 authored by Evan Chou's avatar Evan Chou

set esModule to false to urloader and raw loader

parent 316e3be9
......@@ -70,8 +70,18 @@ module.exports = {
},
module: {
rules: [
{test: /\.(jpe?g|png)/, use: 'url-loader?limit=4096'},
{test: /\.js$|\.jsx$/, exclude: /node_modules/, use: 'babel-loader'},
{
test: /\.(jpe?g|png)/, use: [
{
loader: 'url-loader',
options: {
limit: 4096,
esModule: false,
},
},
],
},
{test: /\.js$|\.jsx$/, exclude: [/node_modules/, /\*\/app\/assets\/static\/\*\.js/], use: 'babel-loader'},
{test: /\.svg$/, use: 'svg-inline-loader'},
{
test: require.resolve("blueimp-file-upload"),
......@@ -87,7 +97,14 @@ module.exports = {
},
{
test: /\.md/,
use: 'raw-loader'
use: [
{
loader: 'raw-loader',
options: {
esModule: false,
},
},
],
}
]
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment