From 23668ee74e0817868c65b92aef43a762a07a6725 Mon Sep 17 00:00:00 2001 From: Sukka Date: Wed, 5 Jun 2024 00:12:06 +0800 Subject: [PATCH] fix(#1126): add `Object.hasOwn` polyfill (#1127) --- package.json | 3 ++- vite.config.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d4bcc90..1c6a0e3 100644 --- a/package.json +++ b/package.json @@ -84,5 +84,6 @@ "semi": true, "singleQuote": false, "endOfLine": "lf" - } + }, + "packageManager": "pnpm@9.1.4" } diff --git a/vite.config.ts b/vite.config.ts index 4c47fa8..ae8e657 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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"),