Skip to content

Commit

Permalink
Support Safari 15, Firefox 91 and Chrome 100
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Aug 11, 2023
1 parent df451e7 commit c936edc
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 101 deletions.
2 changes: 1 addition & 1 deletion code/builders/builder-manager/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const getConfig: ManagerBuilder['getConfig'] = async (options) => {
'.eot': 'dataurl',
'.ttf': 'dataurl',
},
target: ['chrome100'],
target: ['chrome100', 'safari15', 'firefox91'],
platform: 'browser',
bundle: true,
minify: true,
Expand Down
4 changes: 1 addition & 3 deletions code/lib/cli/src/automigrate/fixes/missing-babelrc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ const babelContent = JSON.stringify({
[
'@babel/preset-env',
{
targets: {
chrome: 100,
},
targets: { chrome: 100, safari: 15, firefox: 91 },
},
],
'@babel/preset-typescript',
Expand Down
4 changes: 3 additions & 1 deletion code/lib/cli/src/babel-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ export const writeBabelConfigFile = async ({
}) => {
const fileLocation = location || path.join(process.cwd(), '.babelrc.json');

const presets: (string | [string, any])[] = [['@babel/preset-env', { targets: { chrome: 100 } }]];
const presets: (string | [string, any])[] = [
['@babel/preset-env', { targets: { chrome: 100, safari: 15, firefox: 91 } }],
];

if (typescript) {
presets.push('@babel/preset-typescript');
Expand Down
2 changes: 1 addition & 1 deletion scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/experimental-utils": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"esbuild": "0.18.0",
"esbuild": "^0.18.0",
"eslint": "^8.28.0",
"serialize-javascript": "^3.1.0",
"type-fest": "~2.19"
Expand Down
2 changes: 1 addition & 1 deletion scripts/prepare/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {
watch,
outDir,
format: ['esm'],
target: 'chrome100',
target: ['chrome100', 'safari15', 'firefox91'],
clean: false,
...(dtsBuild === 'esm' ? dtsConfig : {}),
platform: platform || 'browser',
Expand Down
2 changes: 1 addition & 1 deletion scripts/prepare/esm-bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {
outExtension: () => ({
js: '.js',
}),
target: 'chrome100',
target: ['chrome100', 'safari15', 'firefox91'],
clean: false,
...(dtsBuild ? dtsConfig : {}),
platform: 'browser',
Expand Down
186 changes: 93 additions & 93 deletions scripts/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1574,156 +1574,156 @@ __metadata:
languageName: node
linkType: hard

"@esbuild/android-arm64@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/android-arm64@npm:0.18.0"
"@esbuild/android-arm64@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/android-arm64@npm:0.18.14"
conditions: os=android & cpu=arm64
languageName: node
linkType: hard

"@esbuild/android-arm@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/android-arm@npm:0.18.0"
"@esbuild/android-arm@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/android-arm@npm:0.18.14"
conditions: os=android & cpu=arm
languageName: node
linkType: hard

"@esbuild/android-x64@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/android-x64@npm:0.18.0"
"@esbuild/android-x64@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/android-x64@npm:0.18.14"
conditions: os=android & cpu=x64
languageName: node
linkType: hard

"@esbuild/darwin-arm64@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/darwin-arm64@npm:0.18.0"
"@esbuild/darwin-arm64@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/darwin-arm64@npm:0.18.14"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard

"@esbuild/darwin-x64@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/darwin-x64@npm:0.18.0"
"@esbuild/darwin-x64@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/darwin-x64@npm:0.18.14"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard

"@esbuild/freebsd-arm64@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/freebsd-arm64@npm:0.18.0"
"@esbuild/freebsd-arm64@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/freebsd-arm64@npm:0.18.14"
conditions: os=freebsd & cpu=arm64
languageName: node
linkType: hard

"@esbuild/freebsd-x64@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/freebsd-x64@npm:0.18.0"
"@esbuild/freebsd-x64@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/freebsd-x64@npm:0.18.14"
conditions: os=freebsd & cpu=x64
languageName: node
linkType: hard

"@esbuild/linux-arm64@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/linux-arm64@npm:0.18.0"
"@esbuild/linux-arm64@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/linux-arm64@npm:0.18.14"
conditions: os=linux & cpu=arm64
languageName: node
linkType: hard

"@esbuild/linux-arm@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/linux-arm@npm:0.18.0"
"@esbuild/linux-arm@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/linux-arm@npm:0.18.14"
conditions: os=linux & cpu=arm
languageName: node
linkType: hard

"@esbuild/linux-ia32@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/linux-ia32@npm:0.18.0"
"@esbuild/linux-ia32@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/linux-ia32@npm:0.18.14"
conditions: os=linux & cpu=ia32
languageName: node
linkType: hard

"@esbuild/linux-loong64@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/linux-loong64@npm:0.18.0"
"@esbuild/linux-loong64@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/linux-loong64@npm:0.18.14"
conditions: os=linux & cpu=loong64
languageName: node
linkType: hard

"@esbuild/linux-mips64el@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/linux-mips64el@npm:0.18.0"
"@esbuild/linux-mips64el@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/linux-mips64el@npm:0.18.14"
conditions: os=linux & cpu=mips64el
languageName: node
linkType: hard

"@esbuild/linux-ppc64@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/linux-ppc64@npm:0.18.0"
"@esbuild/linux-ppc64@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/linux-ppc64@npm:0.18.14"
conditions: os=linux & cpu=ppc64
languageName: node
linkType: hard

"@esbuild/linux-riscv64@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/linux-riscv64@npm:0.18.0"
"@esbuild/linux-riscv64@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/linux-riscv64@npm:0.18.14"
conditions: os=linux & cpu=riscv64
languageName: node
linkType: hard

"@esbuild/linux-s390x@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/linux-s390x@npm:0.18.0"
"@esbuild/linux-s390x@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/linux-s390x@npm:0.18.14"
conditions: os=linux & cpu=s390x
languageName: node
linkType: hard

"@esbuild/linux-x64@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/linux-x64@npm:0.18.0"
"@esbuild/linux-x64@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/linux-x64@npm:0.18.14"
conditions: os=linux & cpu=x64
languageName: node
linkType: hard

"@esbuild/netbsd-x64@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/netbsd-x64@npm:0.18.0"
"@esbuild/netbsd-x64@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/netbsd-x64@npm:0.18.14"
conditions: os=netbsd & cpu=x64
languageName: node
linkType: hard

"@esbuild/openbsd-x64@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/openbsd-x64@npm:0.18.0"
"@esbuild/openbsd-x64@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/openbsd-x64@npm:0.18.14"
conditions: os=openbsd & cpu=x64
languageName: node
linkType: hard

"@esbuild/sunos-x64@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/sunos-x64@npm:0.18.0"
"@esbuild/sunos-x64@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/sunos-x64@npm:0.18.14"
conditions: os=sunos & cpu=x64
languageName: node
linkType: hard

"@esbuild/win32-arm64@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/win32-arm64@npm:0.18.0"
"@esbuild/win32-arm64@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/win32-arm64@npm:0.18.14"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard

"@esbuild/win32-ia32@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/win32-ia32@npm:0.18.0"
"@esbuild/win32-ia32@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/win32-ia32@npm:0.18.14"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard

"@esbuild/win32-x64@npm:0.18.0":
version: 0.18.0
resolution: "@esbuild/win32-x64@npm:0.18.0"
"@esbuild/win32-x64@npm:0.18.14":
version: 0.18.14
resolution: "@esbuild/win32-x64@npm:0.18.14"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
Expand Down Expand Up @@ -7025,32 +7025,32 @@ __metadata:
languageName: node
linkType: hard

"esbuild@npm:0.18.0":
version: 0.18.0
resolution: "esbuild@npm:0.18.0"
dependencies:
"@esbuild/android-arm": 0.18.0
"@esbuild/android-arm64": 0.18.0
"@esbuild/android-x64": 0.18.0
"@esbuild/darwin-arm64": 0.18.0
"@esbuild/darwin-x64": 0.18.0
"@esbuild/freebsd-arm64": 0.18.0
"@esbuild/freebsd-x64": 0.18.0
"@esbuild/linux-arm": 0.18.0
"@esbuild/linux-arm64": 0.18.0
"@esbuild/linux-ia32": 0.18.0
"@esbuild/linux-loong64": 0.18.0
"@esbuild/linux-mips64el": 0.18.0
"@esbuild/linux-ppc64": 0.18.0
"@esbuild/linux-riscv64": 0.18.0
"@esbuild/linux-s390x": 0.18.0
"@esbuild/linux-x64": 0.18.0
"@esbuild/netbsd-x64": 0.18.0
"@esbuild/openbsd-x64": 0.18.0
"@esbuild/sunos-x64": 0.18.0
"@esbuild/win32-arm64": 0.18.0
"@esbuild/win32-ia32": 0.18.0
"@esbuild/win32-x64": 0.18.0
"esbuild@npm:^0.18.0":
version: 0.18.14
resolution: "esbuild@npm:0.18.14"
dependencies:
"@esbuild/android-arm": 0.18.14
"@esbuild/android-arm64": 0.18.14
"@esbuild/android-x64": 0.18.14
"@esbuild/darwin-arm64": 0.18.14
"@esbuild/darwin-x64": 0.18.14
"@esbuild/freebsd-arm64": 0.18.14
"@esbuild/freebsd-x64": 0.18.14
"@esbuild/linux-arm": 0.18.14
"@esbuild/linux-arm64": 0.18.14
"@esbuild/linux-ia32": 0.18.14
"@esbuild/linux-loong64": 0.18.14
"@esbuild/linux-mips64el": 0.18.14
"@esbuild/linux-ppc64": 0.18.14
"@esbuild/linux-riscv64": 0.18.14
"@esbuild/linux-s390x": 0.18.14
"@esbuild/linux-x64": 0.18.14
"@esbuild/netbsd-x64": 0.18.14
"@esbuild/openbsd-x64": 0.18.14
"@esbuild/sunos-x64": 0.18.14
"@esbuild/win32-arm64": 0.18.14
"@esbuild/win32-ia32": 0.18.14
"@esbuild/win32-x64": 0.18.14
dependenciesMeta:
"@esbuild/android-arm":
optional: true
Expand Down Expand Up @@ -7098,7 +7098,7 @@ __metadata:
optional: true
bin:
esbuild: bin/esbuild
checksum: f40bd01dd3125d0a4831aeddf16b65f4f7ee402e52f61f85c0672a580c4c7623da30e339e3ab997fac95978c4d41baaaf4704a85b4bf76e01038e825942a0c97
checksum: 0a2656670b0e1263e4cf3737f78d304aff1cf76222b2196a12dacc7b520308f8ffb6e5f62ca2d4550bd4d46c215b1d852efe5b7036c667403c0f55e88d89f360
languageName: node
linkType: hard

Expand Down

0 comments on commit c936edc

Please sign in to comment.