1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-31 02:49:56 +02:00

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
This commit is contained in:
Bryan Haakman
2022-07-15 15:14:18 +02:00
committed by GitHub
parent f96b659755
commit 11a93e65de
31 changed files with 817 additions and 1396 deletions

5
site/next-env.d.ts vendored
View File

@@ -1,2 +1,5 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.

View File

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