mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-01-17 21:49:20 +01:00
11a93e65de
* Upgrade next.js and source-map-loader * Add changeset * Upgrade eslint and typescript * improve reliability of iframe test * fix lint
19 lines
364 B
JavaScript
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
|
|
},
|
|
}
|