From b339e6215c500a65bc2849b680502607200bbb8f Mon Sep 17 00:00:00 2001 From: Yasumasa Ashida Date: Mon, 15 Jun 2026 08:08:54 +0900 Subject: [PATCH] chore: Install core-js --- .babelrc | 3 ++- package.json | 4 +++- pnpm-lock.yaml | 16 ++++++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/.babelrc b/.babelrc index cd16c35..f85ec25 100644 --- a/.babelrc +++ b/.babelrc @@ -1,6 +1,7 @@ { "presets": [["@babel/preset-env", { - "useBuiltIns": "entry", + "useBuiltIns": "usage", + "corejs": "3", "modules": "cjs", "loose": true, "targets": { diff --git a/package.json b/package.json index f4df653..6f37286 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "default": "./dist/umd/bowser.umd.js" } } - }, + }, "repository": { "type": "git", "url": "git+https://github.com/bowser-js/bowser.git" @@ -59,6 +59,7 @@ "babel-plugin-istanbul": "^8.0.0", "coveralls": "^3.0.6", "docdash": "^1.1.1", + "core-js": "^3.49.0", "eslint": "^8.57.1", "eslint-config-airbnb-base": "^15.0.0", "eslint-plugin-ava": "^10.5.0", @@ -66,6 +67,7 @@ "gh-pages": "^6.3.0", "jsdoc": "^3.6.3", "nyc": "^18.0.0", + "regenerator-runtime": "^0.14.1", "sinon": "^9.0.0", "testem": "^3.0.0", "tsdown": "^0.22.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e7d03b3..7d721b4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,6 +32,9 @@ importers: babel-plugin-istanbul: specifier: ^8.0.0 version: 8.0.0 + core-js: + specifier: ^3.49.0 + version: 3.49.0 coveralls: specifier: ^3.0.6 version: 3.1.1 @@ -59,6 +62,9 @@ importers: nyc: specifier: ^18.0.0 version: 18.0.0 + regenerator-runtime: + specifier: ^0.14.1 + version: 0.14.1 sinon: specifier: ^9.0.0 version: 9.2.4 @@ -1517,6 +1523,9 @@ packages: core-js-compat@3.49.0: resolution: {integrity: sha512-VQXt1jr9cBz03b331DFDCCP90b3fanciLkgiOoy8SBHy06gNf+vQ1A3WFLqG7I8TipYIKeYK9wxd0tUrvHcOZA==} + core-js@3.49.0: + resolution: {integrity: sha512-es1U2+YTtzpwkxVLwAFdSpaIMyQaq0PBgm3YD1W3Qpsn1NAmO3KSgZfu+oGSWVu6NvLHoHCV/aYcsE5wiB7ALg==} + core-util-is@1.0.2: resolution: {integrity: sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==} @@ -3251,6 +3260,9 @@ packages: regenerate@1.4.2: resolution: {integrity: sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==} + regenerator-runtime@0.14.1: + resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} + regexp.prototype.flags@1.5.4: resolution: {integrity: sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==} engines: {node: '>= 0.4'} @@ -5544,6 +5556,8 @@ snapshots: dependencies: browserslist: 4.28.2 + core-js@3.49.0: {} + core-util-is@1.0.2: {} cors@2.8.6: @@ -7378,6 +7392,8 @@ snapshots: regenerate@1.4.2: {} + regenerator-runtime@0.14.1: {} + regexp.prototype.flags@1.5.4: dependencies: call-bind: 1.0.9