@remotion/studio 4.0.322 → 4.0.324

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @remotion/studio@4.0.322 make /Users/jonathanburger/remotion/packages/studio
3
+ > @remotion/studio@4.0.324 make /Users/jonathanburger/remotion/packages/studio
4
4
  > tsc -d && bun --env-file=../.env.bundle bundle.ts
5
5
 
6
- [458.88ms] Generated.
6
+ [320.79ms] Generated.
@@ -16,10 +16,13 @@ const Spinner_1 = require("../../Spinner");
16
16
  const layout_1 = require("../../layout");
17
17
  const get_stack_1 = require("./get-stack");
18
18
  const source_attribution_1 = require("./source-attribution");
19
+ const publicPath = window.remotion_publicPath === '/' ? '' : window.remotion_publicPath;
20
+ const withoutSlashInTheEnd = publicPath.endsWith('/')
21
+ ? publicPath.slice(0, -1)
22
+ : publicPath;
19
23
  // @ts-expect-error
20
24
  source_map_1.SourceMapConsumer.initialize({
21
- 'lib/mappings.wasm': (window.remotion_publicPath === '/' ? '' : window.remotion_publicPath) +
22
- studio_shared_1.SOURCE_MAP_ENDPOINT,
25
+ 'lib/mappings.wasm': withoutSlashInTheEnd + studio_shared_1.SOURCE_MAP_ENDPOINT,
23
26
  });
24
27
  const TimelineStack = ({ isCompact, sequence }) => {
25
28
  const [originalLocation, setOriginalLocation] = (0, react_1.useState)(null);