1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-21 07:32:24 +01:00
slate/site/next.config.js
2021-02-16 18:03:24 -08:00

15 lines
299 B
JavaScript

const fs = require('fs')
const path = require('path')
module.exports = {
webpack: config => {
config.module.rules.push({
test: /\.js$/,
use: ['source-map-loader'],
enforce: 'pre',
exclude: [/node_modules\/@next/, /node_modules\/next/],
})
return config
},
}