We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7b315d5 + 4def374 commit dc55d71Copy full SHA for dc55d71
packages/blockly-extension/webpack.config.js
@@ -1,5 +1,17 @@
1
// @ts-check
2
3
module.exports = /** @type { import('webpack').Configuration } */ ({
4
- devtool: 'source-map'
+ devtool: 'source-map',
5
+ module: {
6
+ rules: [
7
+ // Load Blockly source maps.
8
+ {
9
+ test: /(blockly\/.*\.js)$/,
10
+ use: [require.resolve('source-map-loader')],
11
+ enforce: 'pre',
12
+ }
13
+ ].filter(Boolean),
14
+ },
15
+ // https://github.com/google/blockly-samples/blob/9974e85becaa8ad17e35b588b95391c85865dafd/plugins/dev-scripts/config/webpack.config.js#L118-L120
16
+ ignoreWarnings: [/Failed to parse source map/]
17
});
0 commit comments