diff --git a/packages/react/rollup.config.js b/packages/react/rollup.config.js index a06b0eb0b..763d8f015 100644 --- a/packages/react/rollup.config.js +++ b/packages/react/rollup.config.js @@ -151,7 +151,7 @@ function define({ dev }) { }), esbuildPlugin({ tsconfig: 'tsconfig.build.json', - target: 'esnext', + target: 'es2021', platform: 'browser', define: { __DEV__: dev ? 'true' : 'false', diff --git a/packages/vidstack/src/core/state/media-request-manager.ts b/packages/vidstack/src/core/state/media-request-manager.ts index 347f1a9ff..c0f8e011e 100644 --- a/packages/vidstack/src/core/state/media-request-manager.ts +++ b/packages/vidstack/src/core/state/media-request-manager.ts @@ -395,6 +395,7 @@ export class MediaRequestManager extends MediaPlayerController implements MediaR if (!event.detail) return; try { const lockType = peek(this.$props.fullscreenOrientation); + if (this._orientation.supported && !isUndefined(lockType)) { await this._orientation.lock(lockType); }