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 6bc5c5a808
commit 23668ee74e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -84,5 +84,6 @@
"semi": true,
"singleQuote": false,
"endOfLine": "lf"
}
},
"packageManager": "pnpm@9.1.4"
}

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"),