I created a simple webpack based project to learn snabbdom. Everything was OK except that sourcemap failed loading:
I don\'t know whose issue(webpack, chrome) i
Update webpack.config.js
module.exports = {
// ...
entry: {
"app": "src/app.js"
},
output: {
path: path.join(__dirname, 'dist'),
filename: "[name].js",
sourceMapFilename: "[name].js.map"
},
devtool: "source-map"
// ...
};
Detailed in https://blog.sentry.io/2018/10/18/4-reasons-why-your-source-maps-are-broken