@remotion/bundler 4.0.427 → 4.0.429
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.
- package/README.md +7 -7
- package/dist/bundle.d.ts +3 -1
- package/dist/bundle.js +10 -7
- package/dist/define-plugin-definitions.d.ts +3 -1
- package/dist/define-plugin-definitions.js +2 -1
- package/dist/esbuild-loader/index.js +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/rspack-config.d.ts +2 -1
- package/dist/rspack-config.js +19 -6
- package/dist/webpack-config.d.ts +2 -1
- package/dist/webpack-config.js +2 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# @remotion/bundler
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
Bundle Remotion compositions using Webpack
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
[](https://npmcharts.com/compare/@remotion/bundler?minimal=true)
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
## Installation
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
```bash
|
|
10
10
|
npm install @remotion/bundler --save-exact
|
|
11
11
|
```
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
When installing a Remotion package, make sure to align the version of all `remotion` and `@remotion/*` packages to the same version.
|
|
14
14
|
Remove the `^` character from the version number to use the exact version.
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
## Usage
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
See the [documentation](https://www.remotion.dev/docs/bundler) for more information.
|
package/dist/bundle.d.ts
CHANGED
|
@@ -15,12 +15,13 @@ export type MandatoryLegacyBundleOptions = {
|
|
|
15
15
|
rspack: boolean;
|
|
16
16
|
};
|
|
17
17
|
export type LegacyBundleOptions = Partial<MandatoryLegacyBundleOptions>;
|
|
18
|
-
export declare const getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, experimentalClientSideRenderingEnabled, }: {
|
|
18
|
+
export declare const getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, experimentalClientSideRenderingEnabled, experimentalVisualModeEnabled, }: {
|
|
19
19
|
outDir: string;
|
|
20
20
|
entryPoint: string;
|
|
21
21
|
resolvedRemotionRoot: string;
|
|
22
22
|
bufferStateDelayInMilliseconds: number | null;
|
|
23
23
|
experimentalClientSideRenderingEnabled: boolean;
|
|
24
|
+
experimentalVisualModeEnabled: boolean;
|
|
24
25
|
maxTimelineTracks: number | null;
|
|
25
26
|
onProgress: (progress: number) => void;
|
|
26
27
|
options: MandatoryLegacyBundleOptions;
|
|
@@ -35,6 +36,7 @@ type NewBundleOptions = {
|
|
|
35
36
|
bufferStateDelayInMilliseconds: number | null;
|
|
36
37
|
audioLatencyHint: AudioContextLatencyCategory | null;
|
|
37
38
|
experimentalClientSideRenderingEnabled: boolean;
|
|
39
|
+
experimentalVisualModeEnabled: boolean;
|
|
38
40
|
renderDefaults: RenderDefaults | null;
|
|
39
41
|
};
|
|
40
42
|
type MandatoryBundleOptions = {
|
package/dist/bundle.js
CHANGED
|
@@ -38,12 +38,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.internalBundle = exports.findClosestFolderWithItem = exports.getConfig = void 0;
|
|
40
40
|
exports.bundle = bundle;
|
|
41
|
-
const studio_shared_1 = require("@remotion/studio-shared");
|
|
42
41
|
const node_fs_1 = __importStar(require("node:fs"));
|
|
43
42
|
const node_os_1 = __importDefault(require("node:os"));
|
|
44
43
|
const node_path_1 = __importDefault(require("node:path"));
|
|
45
44
|
const node_util_1 = require("node:util");
|
|
46
45
|
const node_worker_threads_1 = require("node:worker_threads");
|
|
46
|
+
const studio_shared_1 = require("@remotion/studio-shared");
|
|
47
47
|
const webpack_1 = __importDefault(require("webpack"));
|
|
48
48
|
const copy_dir_1 = require("./copy-dir");
|
|
49
49
|
const index_html_1 = require("./index-html");
|
|
@@ -70,7 +70,7 @@ const trimTrailingSlash = (p) => {
|
|
|
70
70
|
}
|
|
71
71
|
return p;
|
|
72
72
|
};
|
|
73
|
-
const getConfig = ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, experimentalClientSideRenderingEnabled, }) => {
|
|
73
|
+
const getConfig = ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, experimentalClientSideRenderingEnabled, experimentalVisualModeEnabled, }) => {
|
|
74
74
|
var _a, _b, _c, _d;
|
|
75
75
|
const configArgs = {
|
|
76
76
|
entry: node_path_1.default.join(require.resolve('@remotion/studio/renderEntry'), '..', 'esm', 'renderEntry.mjs'),
|
|
@@ -88,6 +88,7 @@ const getConfig = ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, optio
|
|
|
88
88
|
bufferStateDelayInMilliseconds,
|
|
89
89
|
poll: null,
|
|
90
90
|
experimentalClientSideRenderingEnabled,
|
|
91
|
+
experimentalVisualModeEnabled,
|
|
91
92
|
askAIEnabled: (_d = options === null || options === void 0 ? void 0 : options.askAIEnabled) !== null && _d !== void 0 ? _d : true,
|
|
92
93
|
};
|
|
93
94
|
if (options.rspack) {
|
|
@@ -170,6 +171,7 @@ const internalBundle = async (actualArgs) => {
|
|
|
170
171
|
bufferStateDelayInMilliseconds: (_e = actualArgs.bufferStateDelayInMilliseconds) !== null && _e !== void 0 ? _e : null,
|
|
171
172
|
maxTimelineTracks: actualArgs.maxTimelineTracks,
|
|
172
173
|
experimentalClientSideRenderingEnabled: actualArgs.experimentalClientSideRenderingEnabled,
|
|
174
|
+
experimentalVisualModeEnabled: actualArgs.experimentalVisualModeEnabled,
|
|
173
175
|
});
|
|
174
176
|
if (actualArgs.rspack) {
|
|
175
177
|
const { rspack: rspackFn } = require('@rspack/core');
|
|
@@ -290,7 +292,7 @@ exports.internalBundle = internalBundle;
|
|
|
290
292
|
* @see [Documentation](https://remotion.dev/docs/bundle)
|
|
291
293
|
*/
|
|
292
294
|
async function bundle(...args) {
|
|
293
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
295
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
294
296
|
const actualArgs = convertArgumentsIntoOptions(args);
|
|
295
297
|
const result = await (0, exports.internalBundle)({
|
|
296
298
|
bufferStateDelayInMilliseconds: (_a = actualArgs.bufferStateDelayInMilliseconds) !== null && _a !== void 0 ? _a : null,
|
|
@@ -310,10 +312,11 @@ async function bundle(...args) {
|
|
|
310
312
|
webpackOverride: (_p = actualArgs.webpackOverride) !== null && _p !== void 0 ? _p : ((f) => f),
|
|
311
313
|
audioLatencyHint: (_q = actualArgs.audioLatencyHint) !== null && _q !== void 0 ? _q : null,
|
|
312
314
|
experimentalClientSideRenderingEnabled: (_r = actualArgs.experimentalClientSideRenderingEnabled) !== null && _r !== void 0 ? _r : false,
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
315
|
+
experimentalVisualModeEnabled: (_s = actualArgs.experimentalVisualModeEnabled) !== null && _s !== void 0 ? _s : false,
|
|
316
|
+
renderDefaults: (_t = actualArgs.renderDefaults) !== null && _t !== void 0 ? _t : null,
|
|
317
|
+
askAIEnabled: (_u = actualArgs.askAIEnabled) !== null && _u !== void 0 ? _u : true,
|
|
318
|
+
keyboardShortcutsEnabled: (_v = actualArgs.keyboardShortcutsEnabled) !== null && _v !== void 0 ? _v : true,
|
|
319
|
+
rspack: (_w = actualArgs.rspack) !== null && _w !== void 0 ? _w : false,
|
|
317
320
|
});
|
|
318
321
|
return result;
|
|
319
322
|
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
export declare const getDefinePluginDefinitions: ({ maxTimelineTracks, askAIEnabled, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, experimentalClientSideRenderingEnabled, }: {
|
|
1
|
+
export declare const getDefinePluginDefinitions: ({ maxTimelineTracks, askAIEnabled, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, experimentalClientSideRenderingEnabled, experimentalVisualModeEnabled, }: {
|
|
2
2
|
maxTimelineTracks: number | null;
|
|
3
3
|
askAIEnabled: boolean;
|
|
4
4
|
keyboardShortcutsEnabled: boolean;
|
|
5
5
|
bufferStateDelayInMilliseconds: number | null;
|
|
6
6
|
experimentalClientSideRenderingEnabled: boolean;
|
|
7
|
+
experimentalVisualModeEnabled: boolean;
|
|
7
8
|
}) => {
|
|
8
9
|
'process.env.MAX_TIMELINE_TRACKS': number | null;
|
|
9
10
|
'process.env.ASK_AI_ENABLED': boolean;
|
|
10
11
|
'process.env.KEYBOARD_SHORTCUTS_ENABLED': boolean;
|
|
11
12
|
'process.env.BUFFER_STATE_DELAY_IN_MILLISECONDS': number | null;
|
|
12
13
|
'process.env.EXPERIMENTAL_CLIENT_SIDE_RENDERING_ENABLED': boolean;
|
|
14
|
+
'process.env.EXPERIMENTAL_VISUAL_MODE_ENABLED': boolean;
|
|
13
15
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDefinePluginDefinitions = void 0;
|
|
4
|
-
const getDefinePluginDefinitions = ({ maxTimelineTracks, askAIEnabled, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, experimentalClientSideRenderingEnabled, }) => ({
|
|
4
|
+
const getDefinePluginDefinitions = ({ maxTimelineTracks, askAIEnabled, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, experimentalClientSideRenderingEnabled, experimentalVisualModeEnabled, }) => ({
|
|
5
5
|
'process.env.MAX_TIMELINE_TRACKS': maxTimelineTracks,
|
|
6
6
|
'process.env.ASK_AI_ENABLED': askAIEnabled,
|
|
7
7
|
'process.env.KEYBOARD_SHORTCUTS_ENABLED': keyboardShortcutsEnabled,
|
|
8
8
|
'process.env.BUFFER_STATE_DELAY_IN_MILLISECONDS': bufferStateDelayInMilliseconds,
|
|
9
9
|
'process.env.EXPERIMENTAL_CLIENT_SIDE_RENDERING_ENABLED': experimentalClientSideRenderingEnabled,
|
|
10
|
+
'process.env.EXPERIMENTAL_VISUAL_MODE_ENABLED': experimentalVisualModeEnabled,
|
|
10
11
|
});
|
|
11
12
|
exports.getDefinePluginDefinitions = getDefinePluginDefinitions;
|
|
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const esbuild_1 = require("esbuild");
|
|
7
6
|
const node_path_1 = __importDefault(require("node:path"));
|
|
7
|
+
const esbuild_1 = require("esbuild");
|
|
8
8
|
const isTsExtensionPtrn = /\.ts$/i;
|
|
9
9
|
const isTypescriptInstalled = () => {
|
|
10
10
|
try {
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import esbuild = require('esbuild');
|
|
|
2
2
|
import webpack = require('webpack');
|
|
3
3
|
export declare const BundlerInternals: {
|
|
4
4
|
esbuild: typeof esbuild;
|
|
5
|
-
webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, askAIEnabled, }: {
|
|
5
|
+
webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, experimentalVisualModeEnabled, askAIEnabled, }: {
|
|
6
6
|
entry: string;
|
|
7
7
|
userDefinedComponent: string;
|
|
8
8
|
outDir: string | null;
|
|
@@ -17,8 +17,9 @@ export declare const BundlerInternals: {
|
|
|
17
17
|
poll: number | null;
|
|
18
18
|
askAIEnabled: boolean;
|
|
19
19
|
experimentalClientSideRenderingEnabled: boolean;
|
|
20
|
+
experimentalVisualModeEnabled: boolean;
|
|
20
21
|
}) => Promise<[string, webpack.Configuration]>;
|
|
21
|
-
rspackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, askAIEnabled, }: {
|
|
22
|
+
rspackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, experimentalVisualModeEnabled, askAIEnabled, }: {
|
|
22
23
|
entry: string;
|
|
23
24
|
userDefinedComponent: string;
|
|
24
25
|
outDir: string | null;
|
|
@@ -33,6 +34,7 @@ export declare const BundlerInternals: {
|
|
|
33
34
|
poll: number | null;
|
|
34
35
|
askAIEnabled: boolean;
|
|
35
36
|
experimentalClientSideRenderingEnabled: boolean;
|
|
37
|
+
experimentalVisualModeEnabled: boolean;
|
|
36
38
|
}) => Promise<[string, import("@rspack/core").RspackOptions]>;
|
|
37
39
|
createRspackCompiler: (config: import("@rspack/core").RspackOptions) => import("@rspack/core").Compiler;
|
|
38
40
|
indexHtml: ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, completedClientRenders, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, audioLatencyHint, logLevel, mode, }: {
|
|
@@ -61,12 +63,13 @@ export declare const BundlerInternals: {
|
|
|
61
63
|
}) => string;
|
|
62
64
|
cacheExists: (remotionRoot: string, environment: "development" | "production", hash: string) => "does-not-exist" | "exists" | "other-exists";
|
|
63
65
|
clearCache: (remotionRoot: string, env: "development" | "production") => Promise<void>;
|
|
64
|
-
getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, experimentalClientSideRenderingEnabled, }: {
|
|
66
|
+
getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, experimentalClientSideRenderingEnabled, experimentalVisualModeEnabled, }: {
|
|
65
67
|
outDir: string;
|
|
66
68
|
entryPoint: string;
|
|
67
69
|
resolvedRemotionRoot: string;
|
|
68
70
|
bufferStateDelayInMilliseconds: number | null;
|
|
69
71
|
experimentalClientSideRenderingEnabled: boolean;
|
|
72
|
+
experimentalVisualModeEnabled: boolean;
|
|
70
73
|
maxTimelineTracks: number | null;
|
|
71
74
|
onProgress: (progress: number) => void;
|
|
72
75
|
options: import("./bundle").MandatoryLegacyBundleOptions;
|
|
@@ -91,6 +94,7 @@ export declare const BundlerInternals: {
|
|
|
91
94
|
bufferStateDelayInMilliseconds: number | null;
|
|
92
95
|
audioLatencyHint: AudioContextLatencyCategory | null;
|
|
93
96
|
experimentalClientSideRenderingEnabled: boolean;
|
|
97
|
+
experimentalVisualModeEnabled: boolean;
|
|
94
98
|
renderDefaults: import("@remotion/studio-shared").RenderDefaults | null;
|
|
95
99
|
} & import("./bundle").MandatoryLegacyBundleOptions) => Promise<string>;
|
|
96
100
|
};
|
package/dist/rspack-config.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Configuration } from '@rspack/core';
|
|
2
2
|
import type { WebpackOverrideFn } from './webpack-config';
|
|
3
3
|
export type RspackConfiguration = Configuration;
|
|
4
|
-
export declare const rspackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, askAIEnabled, }: {
|
|
4
|
+
export declare const rspackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, experimentalVisualModeEnabled, askAIEnabled, }: {
|
|
5
5
|
entry: string;
|
|
6
6
|
userDefinedComponent: string;
|
|
7
7
|
outDir: string | null;
|
|
@@ -16,5 +16,6 @@ export declare const rspackConfig: ({ entry, userDefinedComponent, outDir, envir
|
|
|
16
16
|
poll: number | null;
|
|
17
17
|
askAIEnabled: boolean;
|
|
18
18
|
experimentalClientSideRenderingEnabled: boolean;
|
|
19
|
+
experimentalVisualModeEnabled: boolean;
|
|
19
20
|
}) => Promise<[string, import("@rspack/core").RspackOptions]>;
|
|
20
21
|
export declare const createRspackCompiler: (config: import("@rspack/core").RspackOptions) => import("@rspack/core").Compiler;
|
package/dist/rspack-config.js
CHANGED
|
@@ -8,7 +8,7 @@ const core_1 = require("@rspack/core");
|
|
|
8
8
|
const plugin_react_refresh_1 = __importDefault(require("@rspack/plugin-react-refresh"));
|
|
9
9
|
const define_plugin_definitions_1 = require("./define-plugin-definitions");
|
|
10
10
|
const shared_bundler_config_1 = require("./shared-bundler-config");
|
|
11
|
-
const rspackConfig = async ({ entry, userDefinedComponent, outDir, environment, webpackOverride = (f) => f, onProgress, enableCaching = true, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, askAIEnabled, }) => {
|
|
11
|
+
const rspackConfig = async ({ entry, userDefinedComponent, outDir, environment, webpackOverride = (f) => f, onProgress, enableCaching = true, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, experimentalVisualModeEnabled, askAIEnabled, }) => {
|
|
12
12
|
let lastProgress = 0;
|
|
13
13
|
const define = new core_1.DefinePlugin((0, define_plugin_definitions_1.getDefinePluginDefinitions)({
|
|
14
14
|
maxTimelineTracks,
|
|
@@ -16,6 +16,7 @@ const rspackConfig = async ({ entry, userDefinedComponent, outDir, environment,
|
|
|
16
16
|
keyboardShortcutsEnabled,
|
|
17
17
|
bufferStateDelayInMilliseconds,
|
|
18
18
|
experimentalClientSideRenderingEnabled,
|
|
19
|
+
experimentalVisualModeEnabled,
|
|
19
20
|
}));
|
|
20
21
|
const swcLoaderRule = {
|
|
21
22
|
loader: 'builtin:swc-loader',
|
|
@@ -53,11 +54,11 @@ const rspackConfig = async ({ entry, userDefinedComponent, outDir, environment,
|
|
|
53
54
|
// but the TypeScript types differ. Cast through `any` for the override.
|
|
54
55
|
const conf = (await webpackOverride({
|
|
55
56
|
...(0, shared_bundler_config_1.getBaseConfig)(environment, poll),
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
node: {
|
|
58
|
+
// Suppress the warning in `source-map`
|
|
59
|
+
__dirname: 'mock',
|
|
60
|
+
__filename: 'mock',
|
|
61
|
+
},
|
|
61
62
|
entry: [
|
|
62
63
|
require.resolve('./setup-environment'),
|
|
63
64
|
userDefinedComponent,
|
|
@@ -87,6 +88,18 @@ const rspackConfig = async ({ entry, userDefinedComponent, outDir, environment,
|
|
|
87
88
|
module: {
|
|
88
89
|
rules: [
|
|
89
90
|
...(0, shared_bundler_config_1.getSharedModuleRules)(),
|
|
91
|
+
{
|
|
92
|
+
// Emscripten's main.js spawns Workers of itself via
|
|
93
|
+
// new Worker(new URL('./main.js', import.meta.url)).
|
|
94
|
+
// This creates a circular chunk dependency that breaks HMR when `@remotion/whisper-web` is used.
|
|
95
|
+
// TODO: whisper-web does not work in Studio with Rspack, also not with Webpack.
|
|
96
|
+
// Disable Worker detection so rspack doesn't create a
|
|
97
|
+
// worker chunk; the new URL() is still handled as an asset.
|
|
98
|
+
test: /[\\/]whisper-web[\\/]main\.js$/,
|
|
99
|
+
parser: {
|
|
100
|
+
worker: false,
|
|
101
|
+
},
|
|
102
|
+
},
|
|
90
103
|
{
|
|
91
104
|
test: /\.tsx?$/,
|
|
92
105
|
use: [swcLoaderRule],
|
package/dist/webpack-config.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Configuration } from 'webpack';
|
|
2
2
|
export type WebpackConfiguration = Configuration;
|
|
3
3
|
export type WebpackOverrideFn = (currentConfiguration: WebpackConfiguration) => WebpackConfiguration | Promise<WebpackConfiguration>;
|
|
4
|
-
export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, askAIEnabled, }: {
|
|
4
|
+
export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, experimentalVisualModeEnabled, askAIEnabled, }: {
|
|
5
5
|
entry: string;
|
|
6
6
|
userDefinedComponent: string;
|
|
7
7
|
outDir: string | null;
|
|
@@ -16,4 +16,5 @@ export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, envi
|
|
|
16
16
|
poll: number | null;
|
|
17
17
|
askAIEnabled: boolean;
|
|
18
18
|
experimentalClientSideRenderingEnabled: boolean;
|
|
19
|
+
experimentalVisualModeEnabled: boolean;
|
|
19
20
|
}) => Promise<[string, Configuration]>;
|
package/dist/webpack-config.js
CHANGED
|
@@ -46,7 +46,7 @@ const esbuild = require("esbuild");
|
|
|
46
46
|
function truthy(value) {
|
|
47
47
|
return Boolean(value);
|
|
48
48
|
}
|
|
49
|
-
const webpackConfig = async ({ entry, userDefinedComponent, outDir, environment, webpackOverride = (f) => f, onProgress, enableCaching = true, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, askAIEnabled, }) => {
|
|
49
|
+
const webpackConfig = async ({ entry, userDefinedComponent, outDir, environment, webpackOverride = (f) => f, onProgress, enableCaching = true, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, experimentalVisualModeEnabled, askAIEnabled, }) => {
|
|
50
50
|
const esbuildLoaderOptions = {
|
|
51
51
|
target: 'chrome85',
|
|
52
52
|
loader: 'tsx',
|
|
@@ -60,6 +60,7 @@ const webpackConfig = async ({ entry, userDefinedComponent, outDir, environment,
|
|
|
60
60
|
keyboardShortcutsEnabled,
|
|
61
61
|
bufferStateDelayInMilliseconds,
|
|
62
62
|
experimentalClientSideRenderingEnabled,
|
|
63
|
+
experimentalVisualModeEnabled,
|
|
63
64
|
}));
|
|
64
65
|
const conf = await webpackOverride({
|
|
65
66
|
...(0, shared_bundler_config_1.getBaseConfig)(environment, poll),
|
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.
|
|
6
|
+
"version": "4.0.429",
|
|
7
7
|
"description": "Bundle Remotion compositions using Webpack",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
|
-
"formatting": "
|
|
14
|
+
"formatting": "oxfmt src --check",
|
|
15
15
|
"lint": "eslint src",
|
|
16
16
|
"test": "bun test src",
|
|
17
17
|
"make": "tsgo -d"
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"css-loader": "5.2.7",
|
|
25
25
|
"esbuild": "0.25.0",
|
|
26
26
|
"react-refresh": "0.9.0",
|
|
27
|
-
"remotion": "4.0.
|
|
28
|
-
"@remotion/studio": "4.0.
|
|
29
|
-
"@remotion/studio-shared": "4.0.
|
|
30
|
-
"@remotion/media-parser": "4.0.
|
|
27
|
+
"remotion": "4.0.429",
|
|
28
|
+
"@remotion/studio": "4.0.429",
|
|
29
|
+
"@remotion/studio-shared": "4.0.429",
|
|
30
|
+
"@remotion/media-parser": "4.0.429",
|
|
31
31
|
"style-loader": "4.0.0",
|
|
32
32
|
"source-map": "0.7.3",
|
|
33
33
|
"webpack": "5.105.0"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"react": "19.2.3",
|
|
41
41
|
"react-dom": "19.2.3",
|
|
42
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
42
|
+
"@remotion/eslint-config-internal": "4.0.429",
|
|
43
43
|
"eslint": "9.19.0",
|
|
44
44
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
45
45
|
},
|