Browse Source

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

Sukka 1 year ago
parent
commit
23668ee74e
2 changed files with 3 additions and 1 deletions
  1. 2 1
      package.json
  2. 1 0
      vite.config.ts

+ 2 - 1
package.json

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

+ 1 - 0
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"),