mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2026-01-15 12:15:02 +00:00
Switch to swc compiler, no more babel
This commit is contained in:
15
.babelrc
15
.babelrc
@@ -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 }]]
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user