Explorar o código

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

Sukka hai 1 ano
pai
achega
23668ee74e
Modificáronse 2 ficheiros con 3 adicións e 1 borrados
  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"),