Switch to swc compiler, no more babel

This commit is contained in:
Dustin Brett
2022-03-01 21:02:05 -08:00
parent 80ee685b52
commit 75c727d58d
3 changed files with 7 additions and 16 deletions

View File

@@ -1,15 +0,0 @@
{
"presets": [
[
"next/babel",
{
"preset-env": {
"targets": {
"browsers": "defaults and supports es6 and not ie 11"
}
}
}
]
],
"plugins": [["styled-components", { "pure": true, "ssr": true }]]
}

View File

@@ -4,10 +4,16 @@
* @type {import('next').NextConfig}
* */
const nextConfig = {
compiler: {
reactRemoveProperties: true,
removeConsole: true,
styledComponents: true,
},
experimental: {
reactRoot: true,
},
reactStrictMode: true,
swcMinify: true,
};
module.exports = nextConfig;

View File

@@ -5,7 +5,7 @@
"author": "Dustin Brett",
"license": "MIT",
"browserslist": [
"defaults and supports es6 and not ie 11"
"defaults and supports es6 and not ie 11 and >1%"
],
"scripts": {
"build": "npm run build:fs && next build",