mirror of
https://github.com/certimate-go/certimate.git
synced 2026-09-24 23:10:13 +08:00
build(ui): adjust babel tagets
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
export const isBrowserHappy = () => {
|
||||
try {
|
||||
if (typeof Promise.withResolvers !== "function") return false;
|
||||
if (typeof Promise.try !== "function") return false;
|
||||
if (typeof CSS.supports !== "function") return false;
|
||||
if (!CSS.supports("color", "oklch(0 0 0)")) return false;
|
||||
} catch (_) {
|
||||
|
||||
@@ -56,6 +56,11 @@ export default defineConfig(({ mode }) => {
|
||||
reactPlugin({}),
|
||||
legacyPlugin({
|
||||
targets: ["defaults", "not IE 11"],
|
||||
modernTargets: "chrome>=111, firefox>=113, safari>=15.4",
|
||||
polyfills: true,
|
||||
modernPolyfills: true,
|
||||
renderLegacyChunks: false,
|
||||
renderModernChunks: true,
|
||||
}),
|
||||
tailwindcssPlugin(),
|
||||
preserveFilesPlugin(["dist/.gitkeep"]),
|
||||
|
||||
Reference in New Issue
Block a user