feat: close #2376 add babel polyfill

main
Yidadaa 2 years ago
parent 30473ec41e
commit af5f67d459

@ -0,0 +1,14 @@
{
"presets": [
[
"next/babel",
{
"preset-env": {
"targets": {
"browsers": ["> 0.25%, not dead"]
}
}
}
]
]
}

@ -1,6 +1,6 @@
"use client";
require("../polyfill");
// require("../polyfill");
import { useState, useEffect } from "react";

@ -30,6 +30,9 @@ const nextConfig = {
images: {
unoptimized: mode === "export",
},
experimental: {
forceSwcTransforms: true,
},
};
if (mode !== "export") {

Loading…
Cancel
Save