mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-21 07:32:24 +01:00
19 lines
372 B
JavaScript
19 lines
372 B
JavaScript
const fs = require('fs')
|
|
const path = require('path')
|
|
|
|
module.exports = {
|
|
webpack: config => {
|
|
config.module.rules.push({
|
|
test: /\.js$/,
|
|
enforce: 'pre',
|
|
exclude: [/node_modules[\\\/]@next/, /node_modules[\\\/]next/],
|
|
use: [
|
|
{
|
|
loader: require.resolve('source-map-loader'),
|
|
},
|
|
],
|
|
})
|
|
return config
|
|
},
|
|
}
|