@remotion/bundler 4.0.231 → 4.0.232

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.
@@ -18,10 +18,9 @@ const isTypescriptInstalled = () => {
18
18
  async function ESBuildLoader(source) {
19
19
  var _a, _b, _c;
20
20
  const done = this.async();
21
- this.getOptions();
22
21
  const options = this.getOptions();
23
- const { implementation, ...esbuildTransformOptions } = options;
24
- const tsConfigPath = node_path_1.default.join(this.context, 'tsconfig.json');
22
+ const { implementation, remotionRoot, ...esbuildTransformOptions } = options;
23
+ const tsConfigPath = node_path_1.default.join(remotionRoot, 'tsconfig.json');
25
24
  if (implementation && typeof implementation.transform !== 'function') {
26
25
  done(new TypeError(`esbuild-loader: options.implementation.transform must be an ESBuild transform function. Received ${typeof implementation.transform}`));
27
26
  return;
@@ -7,5 +7,6 @@ type Except<ObjectType, Properties> = {
7
7
  };
8
8
  export type LoaderOptions = Except<TransformOptions, 'sourcemap' | 'sourcefile'> & {
9
9
  implementation: Implementation;
10
+ remotionRoot: string;
10
11
  };
11
12
  export {};
@@ -48,15 +48,16 @@ if (reactDomVersion === '0') {
48
48
  const shouldUseReactDomClient = no_react_1.NoReactInternals.ENABLE_V5_BREAKING_CHANGES
49
49
  ? true
50
50
  : parseInt(reactDomVersion, 10) >= 18;
51
- const esbuildLoaderOptions = {
52
- target: 'chrome85',
53
- loader: 'tsx',
54
- implementation: esbuild,
55
- };
56
51
  function truthy(value) {
57
52
  return Boolean(value);
58
53
  }
59
54
  const webpackConfig = async ({ entry, userDefinedComponent, outDir, environment, webpackOverride = (f) => f, onProgress, enableCaching = true, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, }) => {
55
+ const esbuildLoaderOptions = {
56
+ target: 'chrome85',
57
+ loader: 'tsx',
58
+ implementation: esbuild,
59
+ remotionRoot,
60
+ };
60
61
  let lastProgress = 0;
61
62
  const isBun = typeof Bun !== 'undefined';
62
63
  const define = new webpack_1.default.DefinePlugin({
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/bundler"
4
4
  },
5
5
  "name": "@remotion/bundler",
6
- "version": "4.0.231",
6
+ "version": "4.0.232",
7
7
  "description": "Bundle Remotion compositions using Webpack",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -25,9 +25,9 @@
25
25
  "style-loader": "2.0.0",
26
26
  "source-map": "0.7.3",
27
27
  "webpack": "5.96.1",
28
- "remotion": "4.0.231",
29
- "@remotion/studio-shared": "4.0.231",
30
- "@remotion/studio": "4.0.231"
28
+ "remotion": "4.0.232",
29
+ "@remotion/studio": "4.0.232",
30
+ "@remotion/studio-shared": "4.0.232"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": ">=16.8.0",
@@ -37,7 +37,7 @@
37
37
  "react": "18.3.1",
38
38
  "react-dom": "18.3.1",
39
39
  "eslint": "9.14.0",
40
- "@remotion/eslint-config-internal": "4.0.231"
40
+ "@remotion/eslint-config-internal": "4.0.232"
41
41
  },
42
42
  "keywords": [
43
43
  "remotion",