1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-03 04:02:33 +02:00

Added source-map-loader to the Next Webpack config to pass through the source maps from the compiles Slate libraries. (#3445)

This commit is contained in:
Ryan Mitts
2020-02-26 08:02:47 -08:00
committed by GitHub
parent 0aaab07792
commit d17a1e86e3
3 changed files with 24 additions and 0 deletions

View File

@@ -20,4 +20,12 @@ module.exports = {
return pages
},
webpack: config => {
config.module.rules.push({
test: /\.js$/,
use: ['source-map-loader'],
enforce: 'pre',
})
return config
},
}