fix(#1126): add Object.hasOwn polyfill (#1127)

This commit is contained in:
Sukka
2024-06-05 00:12:06 +08:00
committed by GitHub
parent 5b83149567
commit 2333271c20
2 changed files with 3 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ export default defineConfig({
modernPolyfills: true,
polyfills: ["web.structured-clone"],
additionalModernPolyfills: [
"core-js/modules/es.object.has-own.js",
path.resolve("./src/polyfills/matchMedia.js"),
path.resolve("./src/polyfills/WeakRef.js"),
path.resolve("./src/polyfills/RegExp.js"),