@remotion/browser-bundler 4.0.537 → 4.0.539
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.
|
@@ -1803,4 +1803,4 @@ require(${JSON.stringify(i)});
|
|
|
1803
1803
|
module.hot.accept(${JSON.stringify(i)}, () => {
|
|
1804
1804
|
require(${JSON.stringify(i)});
|
|
1805
1805
|
});
|
|
1806
|
-
`}:{},onProgress:(s)=>$v({type:"progress",...s}),configure:(s)=>({context:mo(r.rootDir),mode:"development",devtool:"inline-cheap-module-source-map",entry:{bundle:{asyncChunks:!1,import:n?[sd.entry,F4]:[i]}},experiments:{buildHttp:{allowedUris:["https://esm.sh/",`${self.location.origin}/`],cacheLocation:!1,httpClient:C4({fetchImplementation:fetch})}},externals:Object.fromEntries([...pF,...n?["react-refresh/runtime"]:[]].map((f)=>[f,`commonjs ${f}`])),module:{rules:[{parser:{worker:!1},test:/\.[cm]?[jt]sx?$/},...n?[{exclude:[/node_modules/,/__remotion_browser_bundler__/],test:/\.[jt]sx?$/,use:[{loader:"builtin:react-refresh-loader"}]}]:[],{test:/\.[jt]sx?$/,use:[{loader:"builtin:swc-loader",options:{env:{targets:"Chrome >= 111"},jsc:{parser:{syntax:"typescript",tsx:!0},transform:{react:{development:n,refresh:n,runtime:"automatic"}}}}}]}]},optimization:{emitOnErrors:!n,runtimeChunk:!1,splitChunks:!1},output:{chunkFilename:"[name].js",chunkFormat:"array-push",chunkLoading:"jsonp",filename:"bundle.js",path:"/dist",publicPath:"",hashFunction:"xxhash64",uniqueName:"remotion-browser-bundler",...n?{hotUpdateGlobal:I4}:{}},plugins:[...n?[k4({rspack:s,refreshRuntime:sd.runtime,refreshUtils:sd.utils}),new s.HotModuleReplacementPlugin,T4({rspack:s,bridgeName:jv})]:[],R4({rspack:s,development:n,external:["react","react-dom","remotion",...n?["react-refresh"]:[]],resolvedUrls:{},resolvedVersions:{...{react:"19.2.3","react-dom":"19.2.3",remotion:"4.0.
|
|
1806
|
+
`}:{},onProgress:(s)=>$v({type:"progress",...s}),configure:(s)=>({context:mo(r.rootDir),mode:"development",devtool:"inline-cheap-module-source-map",entry:{bundle:{asyncChunks:!1,import:n?[sd.entry,F4]:[i]}},experiments:{buildHttp:{allowedUris:["https://esm.sh/",`${self.location.origin}/`],cacheLocation:!1,httpClient:C4({fetchImplementation:fetch})}},externals:Object.fromEntries([...pF,...n?["react-refresh/runtime"]:[]].map((f)=>[f,`commonjs ${f}`])),module:{rules:[{parser:{worker:!1},test:/\.[cm]?[jt]sx?$/},...n?[{exclude:[/node_modules/,/__remotion_browser_bundler__/],test:/\.[jt]sx?$/,use:[{loader:"builtin:react-refresh-loader"}]}]:[],{test:/\.[jt]sx?$/,use:[{loader:"builtin:swc-loader",options:{env:{targets:"Chrome >= 111"},jsc:{parser:{syntax:"typescript",tsx:!0},transform:{react:{development:n,refresh:n,runtime:"automatic"}}}}}]}]},optimization:{emitOnErrors:!n,runtimeChunk:!1,splitChunks:!1},output:{chunkFilename:"[name].js",chunkFormat:"array-push",chunkLoading:"jsonp",filename:"bundle.js",path:"/dist",publicPath:"",hashFunction:"xxhash64",uniqueName:"remotion-browser-bundler",...n?{hotUpdateGlobal:I4}:{}},plugins:[...n?[k4({rspack:s,refreshRuntime:sd.runtime,refreshUtils:sd.utils}),new s.HotModuleReplacementPlugin,T4({rspack:s,bridgeName:jv})]:[],R4({rspack:s,development:n,external:["react","react-dom","remotion",...n?["react-refresh"]:[]],resolvedUrls:{},resolvedVersions:{...{react:"19.2.3","react-dom":"19.2.3",remotion:"4.0.539"},...t.dependencyVersions},resolvePackage:null}),new s.optimize.LimitChunkCountPlugin({maxChunks:1})],resolve:{extensions:[".tsx",".ts",".jsx",".js",".json"]}})}),Uv=r;let o=await va.compile(r);if(o.bundle===null)throw new id("Rspack compilation failed",o.errors);if(n&&(!o.hash||od===null))throw Error("Rspack did not return a Fast Refresh build hash.");$v({type:"bundle",id:t.id,bundle:{code:o.bundle,warnings:o.warnings,fastRefresh:n&&o.hash&&od!==null?{sessionId:od,hash:o.hash,previousHash:Wv,assets:o.assets.filter((s)=>s.name.includes(".hot-update."))}:null}}),Wv=o.hash??null}catch(r){$v({type:"error",id:t.id,error:O4(r)})}})});
|
|
@@ -22,6 +22,6 @@ export type BrowserCompiler = {
|
|
|
22
22
|
export declare const createBrowserCompiler: ({ project, virtualFiles, configure, onProgress, }: {
|
|
23
23
|
project: BrowserCompilerProject;
|
|
24
24
|
virtualFiles: Record<string, string>;
|
|
25
|
-
configure: (rspack: typeof RspackBrowser) => RspackBrowser.
|
|
25
|
+
configure: (rspack: typeof RspackBrowser) => RspackBrowser.Configuration;
|
|
26
26
|
onProgress: ((progress: BrowserBundlerProgress) => void) | null;
|
|
27
27
|
}) => Promise<BrowserCompiler>;
|
|
@@ -10,8 +10,8 @@ export type BrowserComposition = VideoConfig & {
|
|
|
10
10
|
* Pass an AbortSignal to cancel pending lazy roots or calculateMetadata().
|
|
11
11
|
*/
|
|
12
12
|
export declare const getBrowserComposition: ({ root: RegisteredRoot, compositionId, inputProps, signal, }: {
|
|
13
|
-
root: React.FC
|
|
13
|
+
root: React.FC;
|
|
14
14
|
compositionId: string;
|
|
15
15
|
inputProps: Record<string, unknown>;
|
|
16
|
-
signal?: AbortSignal
|
|
16
|
+
signal?: AbortSignal;
|
|
17
17
|
}) => Promise<BrowserComposition>;
|
package/dist/http-client.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ type BrowserHttpResponse = {
|
|
|
4
4
|
status: number;
|
|
5
5
|
};
|
|
6
6
|
export declare const makeBrowserHttpClient: ({ fetchImplementation, }: {
|
|
7
|
-
fetchImplementation: (input:
|
|
7
|
+
fetchImplementation: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
8
8
|
}) => (url: string, headers: Record<string, string>) => Promise<BrowserHttpResponse>;
|
|
9
9
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/browser-bundler",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.539",
|
|
4
4
|
"description": "Compile virtual Remotion projects in the browser",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"formatting": "oxfmt src --check",
|
|
15
15
|
"format": "oxfmt src",
|
|
16
16
|
"lint": "eslint src",
|
|
17
|
-
"watch": "
|
|
18
|
-
"make": "
|
|
17
|
+
"watch": "tsc -w",
|
|
18
|
+
"make": "tsc && bun --env-file=../.env.bundle bundle.ts"
|
|
19
19
|
},
|
|
20
20
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
21
21
|
"contributors": [],
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@rspack/browser": "2.1.1",
|
|
28
28
|
"react-refresh": "0.18.0",
|
|
29
|
-
"remotion": "4.0.
|
|
29
|
+
"remotion": "4.0.539"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"react": ">=18.0.0",
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@rspack/plugin-react-refresh": "1.6.1",
|
|
55
55
|
"@happy-dom/global-registrator": "14.5.1",
|
|
56
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
57
|
-
"@remotion/player": "4.0.
|
|
56
|
+
"@remotion/eslint-config-internal": "4.0.539",
|
|
57
|
+
"@remotion/player": "4.0.539",
|
|
58
58
|
"@testing-library/react": "16.1.0",
|
|
59
59
|
"@types/react": "19.2.7",
|
|
60
60
|
"@types/react-dom": "19.2.3",
|
|
61
|
-
"
|
|
61
|
+
"typescript": "7.1.0-beta",
|
|
62
62
|
"eslint": "9.19.0",
|
|
63
63
|
"react": "19.2.3",
|
|
64
64
|
"react-dom": "19.2.3"
|