Skip to content

Commit 537fc45

Browse files
committed
fix(player/cdn): static blocks throwing on iOS 15
1 parent bf59ba5 commit 537fc45

7 files changed

Lines changed: 190 additions & 167 deletions

File tree

cliff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ body = """
1313
{% for group, commits in commits | group_by(attribute="group") %}
1414
### {{ group | upper_first }}
1515
{% for group, commits in commits | group_by(attribute="scope") %}
16-
#### {{ group | upper_first | replace(from="/react", to=" (React)") }}
16+
#### {{ group | upper_first | replace(from="/react", to=" (React)") | replace(from="/cdn", to=" (CDN)") }}
1717
{% for commit in commits %}
1818
- {{ commit.message }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/vidstack/player/commit/{{ commit.id }}))\
1919
{% endfor %}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@types/node": "^18.0.0",
2525
"chokidar": "^3.5.0",
2626
"enquirer": "^2.3.0",
27-
"esbuild": "^0.19.4",
27+
"esbuild": "^0.23.0",
2828
"execa": "^6.0.0",
2929
"fs-extra": "^11.0.0",
3030
"git-cliff": "^1.4.0",

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@types/react": "^18.0.0",
3939
"@types/react-dom": "^18.0.0",
4040
"@vitejs/plugin-react": "^4.2.0",
41-
"esbuild": "^0.19.4",
41+
"esbuild": "^0.23.0",
4242
"fs-extra": "^11.0.0",
4343
"maverick.js": "0.42.0",
4444
"media-icons": "^1.1.4",

packages/vidstack/mangle.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,5 +794,6 @@
794794
"_playedInterval": "Ln",
795795
"_playedIntervals": "On",
796796
"_seekedTo": "Nn",
797-
"_updatePlayed": "Pn"
797+
"_updatePlayed": "Pn",
798+
"_pageVisibility": "Qn"
798799
}

packages/vidstack/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"compute-scroll-into-view": "^3.1.0",
5454
"dashjs": "^4.7.4",
5555
"es-module-lexer": "^1.4.0",
56-
"esbuild": "^0.19.4",
56+
"esbuild": "^0.23.0",
5757
"esbuild-minify-templates": "^0.11.0",
5858
"fscreen": "^1.2.0",
5959
"hls.js": "^1.4.0",
@@ -66,7 +66,7 @@
6666
"postcss": "^8.4.0",
6767
"rimraf": "^3.0.0",
6868
"rollup": "^4.0.0",
69-
"rollup-plugin-dts": "^6.0.0",
69+
"rollup-plugin-dts": "^6.1.0",
7070
"rollup-plugin-esbuild": "^6.1.0",
7171
"rollup-pluginutils": "^2.8.2",
7272
"solid-js": "^1.7.11",

packages/vidstack/rollup.config.js

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -255,19 +255,28 @@ function defineNPMBundle({ target, type, minify }) {
255255
__TEST__: 'false',
256256
},
257257
}),
258+
!!target && {
259+
name: 'target-syntax',
260+
transform(code, id) {
261+
if (/node_modules.*?\.js/.test(id)) {
262+
return esbuildTransform(code, {
263+
target,
264+
platform: 'neutral',
265+
}).then((t) => t.code);
266+
}
267+
},
268+
},
258269
shouldMangle && {
259270
name: 'mangle',
260271
async transform(code, id) {
261272
if (id.includes('node_modules')) return null;
262-
return (
263-
await esbuildTransform(code, {
264-
target: 'esnext',
265-
platform: 'neutral',
266-
mangleProps: /^_/,
267-
mangleCache: MANGLE_CACHE,
268-
reserveProps: /^__/,
269-
})
270-
).code;
273+
return esbuildTransform(code, {
274+
target: 'esnext',
275+
platform: 'neutral',
276+
mangleProps: /^_/,
277+
mangleCache: MANGLE_CACHE,
278+
reserveProps: /^__/,
279+
}).then((t) => t.code);
271280
},
272281
},
273282
],

0 commit comments

Comments
 (0)