1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-01-17 21:49:20 +01:00
slate/site/next.config.js
Bryan Haakman 11a93e65de
Upgrade next.js to 12 and related packages (#5042)
* Upgrade next.js and source-map-loader

* Add changeset

* Upgrade eslint and typescript

* improve reliability of iframe test

* fix lint
2022-07-15 06:14:18 -07:00

19 lines
364 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
},
}