@remotion/bundler 4.0.0-lambda.3 → 4.0.0-newpaths.1
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/LICENSE.md +8 -8
- package/dist/bundle-mode.d.ts +1 -1
- package/dist/bundle-mode.js +0 -0
- package/dist/bundle.d.ts +26 -3
- package/dist/bundle.js +121 -27
- package/dist/copy-dir.d.ts +8 -1
- package/dist/copy-dir.js +19 -3
- package/dist/esbuild-loader/index.d.ts +2 -2
- package/dist/esbuild-loader/index.js +2 -1
- package/dist/esbuild-loader/interfaces.d.ts +1 -1
- package/dist/esbuild-loader/interfaces.js +0 -0
- package/dist/fast-refresh/helpers.d.ts +0 -0
- package/dist/fast-refresh/helpers.js +0 -0
- package/dist/fast-refresh/index.d.ts +1 -1
- package/dist/fast-refresh/index.js +0 -27
- package/dist/fast-refresh/loader.d.ts +1 -1
- package/dist/fast-refresh/loader.js +0 -0
- package/dist/fast-refresh/runtime.d.ts +0 -0
- package/dist/fast-refresh/runtime.js +0 -0
- package/dist/homepage/homepage.d.ts +0 -0
- package/dist/homepage/homepage.js +0 -0
- package/dist/index-html.d.ts +14 -1
- package/dist/index-html.js +21 -5
- package/dist/index.d.ts +38 -9
- package/dist/index.js +6 -2
- package/dist/read-recursively.d.ts +8 -0
- package/dist/read-recursively.js +78 -0
- package/dist/renderEntry.d.ts +1 -1
- package/dist/renderEntry.js +37 -6
- package/dist/setup-environment.d.ts +0 -0
- package/dist/setup-environment.js +9 -3
- package/dist/stringify-with-circular-references.d.ts +1 -0
- package/dist/stringify-with-circular-references.js +18 -0
- package/dist/{error-overlay/entry-basic.d.ts → test/validate-bundle.test.d.ts} +0 -0
- package/dist/test/validate-bundle.test.js +10 -0
- package/dist/test/{latest-remotion-version.test.d.ts → validate-public-dir.test.d.ts} +0 -0
- package/dist/test/validate-public-dir.test.js +21 -0
- package/dist/validate-public-dir.d.ts +1 -0
- package/dist/validate-public-dir.js +30 -0
- package/dist/webpack-cache.d.ts +4 -3
- package/dist/webpack-cache.js +33 -17
- package/dist/webpack-config.d.ts +7 -5
- package/dist/webpack-config.js +31 -16
- package/package.json +15 -14
- package/react-shim.js +5 -1
- package/dist/bundle-mode.d.ts.map +0 -1
- package/dist/bundle-mode.js.map +0 -1
- package/dist/bundler.d.ts +0 -7
- package/dist/bundler.d.ts.map +0 -1
- package/dist/bundler.js +0 -76
- package/dist/bundler.js.map +0 -1
- package/dist/copy-dir.d.ts.map +0 -1
- package/dist/copy-dir.js.map +0 -1
- package/dist/dev-middleware/compatible-api.d.ts +0 -10
- package/dist/dev-middleware/compatible-api.d.ts.map +0 -1
- package/dist/dev-middleware/compatible-api.js +0 -44
- package/dist/dev-middleware/compatible-api.js.map +0 -1
- package/dist/dev-middleware/get-filename-from-url.d.ts +0 -2
- package/dist/dev-middleware/get-filename-from-url.d.ts.map +0 -1
- package/dist/dev-middleware/get-filename-from-url.js +0 -92
- package/dist/dev-middleware/get-filename-from-url.js.map +0 -1
- package/dist/dev-middleware/get-paths.d.ts +0 -7
- package/dist/dev-middleware/get-paths.d.ts.map +0 -1
- package/dist/dev-middleware/get-paths.js +0 -19
- package/dist/dev-middleware/get-paths.js.map +0 -1
- package/dist/dev-middleware/index.d.ts +0 -3
- package/dist/dev-middleware/index.d.ts.map +0 -1
- package/dist/dev-middleware/index.js +0 -57
- package/dist/dev-middleware/index.js.map +0 -1
- package/dist/dev-middleware/is-color-supported.d.ts +0 -1
- package/dist/dev-middleware/is-color-supported.d.ts.map +0 -1
- package/dist/dev-middleware/is-color-supported.js +0 -37
- package/dist/dev-middleware/is-color-supported.js.map +0 -1
- package/dist/dev-middleware/middleware.d.ts +0 -4
- package/dist/dev-middleware/middleware.d.ts.map +0 -1
- package/dist/dev-middleware/middleware.js +0 -141
- package/dist/dev-middleware/middleware.js.map +0 -1
- package/dist/dev-middleware/range-parser.d.ts +0 -15
- package/dist/dev-middleware/range-parser.d.ts.map +0 -1
- package/dist/dev-middleware/range-parser.js +0 -96
- package/dist/dev-middleware/range-parser.js.map +0 -1
- package/dist/dev-middleware/ready.d.ts +0 -5
- package/dist/dev-middleware/ready.d.ts.map +0 -1
- package/dist/dev-middleware/ready.js +0 -13
- package/dist/dev-middleware/ready.js.map +0 -1
- package/dist/dev-middleware/setup-hooks.d.ts +0 -2
- package/dist/dev-middleware/setup-hooks.d.ts.map +0 -1
- package/dist/dev-middleware/setup-hooks.js +0 -44
- package/dist/dev-middleware/setup-hooks.js.map +0 -1
- package/dist/dev-middleware/setup-output-filesystem.d.ts +0 -2
- package/dist/dev-middleware/setup-output-filesystem.d.ts.map +0 -1
- package/dist/dev-middleware/setup-output-filesystem.js +0 -13
- package/dist/dev-middleware/setup-output-filesystem.js.map +0 -1
- package/dist/dev-middleware/types.d.ts +0 -11
- package/dist/dev-middleware/types.d.ts.map +0 -1
- package/dist/dev-middleware/types.js +0 -2
- package/dist/dev-middleware/types.js.map +0 -1
- package/dist/error-overlay/entry-basic.d.ts.map +0 -1
- package/dist/error-overlay/entry-basic.js +0 -21
- package/dist/error-overlay/entry-basic.js.map +0 -1
- package/dist/error-overlay/react-overlay/effects/format-warning.d.ts +0 -11
- package/dist/error-overlay/react-overlay/effects/format-warning.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/effects/format-warning.js +0 -41
- package/dist/error-overlay/react-overlay/effects/format-warning.js.map +0 -1
- package/dist/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts +0 -7
- package/dist/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/effects/map-error-to-react-stack.js +0 -46
- package/dist/error-overlay/react-overlay/effects/map-error-to-react-stack.js.map +0 -1
- package/dist/error-overlay/react-overlay/effects/proxy-console.d.ts +0 -24
- package/dist/error-overlay/react-overlay/effects/proxy-console.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/effects/proxy-console.js +0 -63
- package/dist/error-overlay/react-overlay/effects/proxy-console.js.map +0 -1
- package/dist/error-overlay/react-overlay/effects/resolve-file-source.d.ts +0 -3
- package/dist/error-overlay/react-overlay/effects/resolve-file-source.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/effects/resolve-file-source.js +0 -31
- package/dist/error-overlay/react-overlay/effects/resolve-file-source.js.map +0 -1
- package/dist/error-overlay/react-overlay/effects/stack-trace-limit.d.ts +0 -3
- package/dist/error-overlay/react-overlay/effects/stack-trace-limit.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/effects/stack-trace-limit.js +0 -43
- package/dist/error-overlay/react-overlay/effects/stack-trace-limit.js.map +0 -1
- package/dist/error-overlay/react-overlay/effects/unhandled-error.d.ts +0 -4
- package/dist/error-overlay/react-overlay/effects/unhandled-error.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/effects/unhandled-error.js +0 -45
- package/dist/error-overlay/react-overlay/effects/unhandled-error.js.map +0 -1
- package/dist/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +0 -4
- package/dist/error-overlay/react-overlay/effects/unhandled-rejection.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/effects/unhandled-rejection.js +0 -41
- package/dist/error-overlay/react-overlay/effects/unhandled-rejection.js.map +0 -1
- package/dist/error-overlay/react-overlay/index.d.ts +0 -2
- package/dist/error-overlay/react-overlay/index.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/index.js +0 -21
- package/dist/error-overlay/react-overlay/index.js.map +0 -1
- package/dist/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +0 -8
- package/dist/error-overlay/react-overlay/listen-to-runtime-errors.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/listen-to-runtime-errors.js +0 -78
- package/dist/error-overlay/react-overlay/listen-to-runtime-errors.js.map +0 -1
- package/dist/error-overlay/react-overlay/utils/get-file-source.d.ts +0 -1
- package/dist/error-overlay/react-overlay/utils/get-file-source.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/utils/get-file-source.js +0 -21
- package/dist/error-overlay/react-overlay/utils/get-file-source.js.map +0 -1
- package/dist/error-overlay/react-overlay/utils/get-lines-around.d.ts +0 -14
- package/dist/error-overlay/react-overlay/utils/get-lines-around.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/utils/get-lines-around.js +0 -24
- package/dist/error-overlay/react-overlay/utils/get-lines-around.js.map +0 -1
- package/dist/error-overlay/react-overlay/utils/get-source-map.d.ts +0 -13
- package/dist/error-overlay/react-overlay/utils/get-source-map.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/utils/get-source-map.js +0 -58
- package/dist/error-overlay/react-overlay/utils/get-source-map.js.map +0 -1
- package/dist/error-overlay/react-overlay/utils/get-stack-frames.d.ts +0 -2
- package/dist/error-overlay/react-overlay/utils/get-stack-frames.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/utils/get-stack-frames.js +0 -27
- package/dist/error-overlay/react-overlay/utils/get-stack-frames.js.map +0 -1
- package/dist/error-overlay/react-overlay/utils/open-in-editor.d.ts +0 -12
- package/dist/error-overlay/react-overlay/utils/open-in-editor.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/utils/open-in-editor.js +0 -459
- package/dist/error-overlay/react-overlay/utils/open-in-editor.js.map +0 -1
- package/dist/error-overlay/react-overlay/utils/parser.d.ts +0 -2
- package/dist/error-overlay/react-overlay/utils/parser.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/utils/parser.js +0 -117
- package/dist/error-overlay/react-overlay/utils/parser.js.map +0 -1
- package/dist/error-overlay/react-overlay/utils/stack-frame.d.ts +0 -40
- package/dist/error-overlay/react-overlay/utils/stack-frame.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/utils/stack-frame.js +0 -31
- package/dist/error-overlay/react-overlay/utils/stack-frame.js.map +0 -1
- package/dist/error-overlay/react-overlay/utils/unmapper.d.ts +0 -2
- package/dist/error-overlay/react-overlay/utils/unmapper.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/utils/unmapper.js +0 -64
- package/dist/error-overlay/react-overlay/utils/unmapper.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/AskOnDiscord.d.ts +0 -2
- package/dist/error-overlay/remotion-overlay/AskOnDiscord.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/AskOnDiscord.js +0 -14
- package/dist/error-overlay/remotion-overlay/AskOnDiscord.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/Button.d.ts +0 -6
- package/dist/error-overlay/remotion-overlay/Button.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/Button.js +0 -24
- package/dist/error-overlay/remotion-overlay/Button.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/CodeFrame.d.ts +0 -6
- package/dist/error-overlay/remotion-overlay/CodeFrame.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/CodeFrame.js +0 -28
- package/dist/error-overlay/remotion-overlay/CodeFrame.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/DismissButton.d.ts +0 -2
- package/dist/error-overlay/remotion-overlay/DismissButton.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/DismissButton.js +0 -23
- package/dist/error-overlay/remotion-overlay/DismissButton.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/ErrorDisplay.d.ts +0 -5
- package/dist/error-overlay/remotion-overlay/ErrorDisplay.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/ErrorDisplay.js +0 -45
- package/dist/error-overlay/remotion-overlay/ErrorDisplay.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/ErrorLoader.d.ts +0 -4
- package/dist/error-overlay/remotion-overlay/ErrorLoader.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/ErrorLoader.js +0 -61
- package/dist/error-overlay/remotion-overlay/ErrorLoader.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/ErrorTitle.d.ts +0 -6
- package/dist/error-overlay/remotion-overlay/ErrorTitle.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/ErrorTitle.js +0 -41
- package/dist/error-overlay/remotion-overlay/ErrorTitle.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/OpenInEditor.d.ts +0 -5
- package/dist/error-overlay/remotion-overlay/OpenInEditor.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/OpenInEditor.js +0 -90
- package/dist/error-overlay/remotion-overlay/OpenInEditor.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/Overlay.d.ts +0 -14
- package/dist/error-overlay/remotion-overlay/Overlay.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/Overlay.js +0 -49
- package/dist/error-overlay/remotion-overlay/Overlay.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +0 -4
- package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.js +0 -13
- package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/StackFrame.d.ts +0 -8
- package/dist/error-overlay/remotion-overlay/StackFrame.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/StackFrame.js +0 -48
- package/dist/error-overlay/remotion-overlay/StackFrame.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/Symbolicating.d.ts +0 -2
- package/dist/error-overlay/remotion-overlay/Symbolicating.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/Symbolicating.js +0 -8
- package/dist/error-overlay/remotion-overlay/Symbolicating.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/carets.d.ts +0 -2
- package/dist/error-overlay/remotion-overlay/carets.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/carets.js +0 -12
- package/dist/error-overlay/remotion-overlay/carets.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/format-location.d.ts +0 -1
- package/dist/error-overlay/remotion-overlay/format-location.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/format-location.js +0 -10
- package/dist/error-overlay/remotion-overlay/format-location.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/index.d.ts +0 -1
- package/dist/error-overlay/remotion-overlay/index.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/index.js +0 -18
- package/dist/error-overlay/remotion-overlay/index.js.map +0 -1
- package/dist/esbuild-loader/index.d.ts.map +0 -1
- package/dist/esbuild-loader/index.js.map +0 -1
- package/dist/esbuild-loader/interfaces.d.ts.map +0 -1
- package/dist/esbuild-loader/interfaces.js.map +0 -1
- package/dist/fast-refresh/helpers.d.ts.map +0 -1
- package/dist/fast-refresh/helpers.js.map +0 -1
- package/dist/fast-refresh/index.d.ts.map +0 -1
- package/dist/fast-refresh/index.js.map +0 -1
- package/dist/fast-refresh/loader.d.ts.map +0 -1
- package/dist/fast-refresh/loader.js.map +0 -1
- package/dist/fast-refresh/runtime.d.ts.map +0 -1
- package/dist/fast-refresh/runtime.js.map +0 -1
- package/dist/get-latest-remotion-version.d.ts +0 -1
- package/dist/get-latest-remotion-version.d.ts.map +0 -1
- package/dist/get-latest-remotion-version.js +0 -31
- package/dist/get-latest-remotion-version.js.map +0 -1
- package/dist/get-package-manager.d.ts +0 -8
- package/dist/get-package-manager.d.ts.map +0 -1
- package/dist/get-package-manager.js +0 -38
- package/dist/get-package-manager.js.map +0 -1
- package/dist/get-port.d.ts +0 -1
- package/dist/get-port.d.ts.map +0 -1
- package/dist/get-port.js +0 -75
- package/dist/get-port.js.map +0 -1
- package/dist/homepage/homepage.d.ts.map +0 -1
- package/dist/homepage/homepage.js.map +0 -1
- package/dist/hot-middleware/client.d.ts +0 -19
- package/dist/hot-middleware/client.d.ts.map +0 -1
- package/dist/hot-middleware/client.js +0 -206
- package/dist/hot-middleware/client.js.map +0 -1
- package/dist/hot-middleware/index.d.ts +0 -13
- package/dist/hot-middleware/index.d.ts.map +0 -1
- package/dist/hot-middleware/index.js +0 -180
- package/dist/hot-middleware/index.js.map +0 -1
- package/dist/hot-middleware/process-update.d.ts +0 -12
- package/dist/hot-middleware/process-update.d.ts.map +0 -1
- package/dist/hot-middleware/process-update.js +0 -147
- package/dist/hot-middleware/process-update.js.map +0 -1
- package/dist/hot-middleware/strip-ansi.d.ts +0 -1
- package/dist/hot-middleware/strip-ansi.d.ts.map +0 -1
- package/dist/hot-middleware/strip-ansi.js +0 -21
- package/dist/hot-middleware/strip-ansi.js.map +0 -1
- package/dist/hot-middleware/types.d.ts +0 -37
- package/dist/hot-middleware/types.d.ts.map +0 -1
- package/dist/hot-middleware/types.js +0 -17
- package/dist/hot-middleware/types.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/json-parser.d.ts +0 -7
- package/dist/json-parser.js +0 -177
- package/dist/p-limit.d.ts +0 -1
- package/dist/p-limit.js +0 -57
- package/dist/project-info.d.ts +0 -5
- package/dist/project-info.d.ts.map +0 -1
- package/dist/project-info.js +0 -22
- package/dist/project-info.js.map +0 -1
- package/dist/read.d.ts +0 -6
- package/dist/read.js +0 -183
- package/dist/renderEntry.d.ts.map +0 -1
- package/dist/renderEntry.js.map +0 -1
- package/dist/routes.d.ts +0 -8
- package/dist/routes.js +0 -122
- package/dist/serve-static.d.ts +0 -26
- package/dist/serve-static.js +0 -72
- package/dist/setup-environment.d.ts.map +0 -1
- package/dist/setup-environment.js.map +0 -1
- package/dist/start-server-pure.d.ts +0 -8
- package/dist/start-server-pure.js +0 -68
- package/dist/start-server.d.ts +0 -8
- package/dist/start-server.d.ts.map +0 -1
- package/dist/start-server.js +0 -132
- package/dist/start-server.js.map +0 -1
- package/dist/static-preview.d.ts +0 -1
- package/dist/static-preview.d.ts.map +0 -1
- package/dist/static-preview.js +0 -40
- package/dist/static-preview.js.map +0 -1
- package/dist/static-server.d.ts +0 -0
- package/dist/static-server.js +0 -1
- package/dist/test/expect-to-throw.d.ts +0 -1
- package/dist/test/expect-to-throw.d.ts.map +0 -1
- package/dist/test/expect-to-throw.js +0 -14
- package/dist/test/expect-to-throw.js.map +0 -1
- package/dist/test/latest-remotion-version.test.d.ts.map +0 -1
- package/dist/test/latest-remotion-version.test.js +0 -6
- package/dist/test/latest-remotion-version.test.js.map +0 -1
- package/dist/test/parse-error-stack.test.d.ts +0 -1
- package/dist/test/parse-error-stack.test.d.ts.map +0 -1
- package/dist/test/parse-error-stack.test.js +0 -17
- package/dist/test/parse-error-stack.test.js.map +0 -1
- package/dist/test/parse-module-not-found.test.d.ts +0 -1
- package/dist/test/parse-module-not-found.test.d.ts.map +0 -1
- package/dist/test/parse-module-not-found.test.js +0 -17
- package/dist/test/parse-module-not-found.test.js.map +0 -1
- package/dist/test/secure-source-read.test.d.ts +0 -1
- package/dist/test/secure-source-read.test.d.ts.map +0 -1
- package/dist/test/secure-source-read.test.js +0 -8
- package/dist/test/secure-source-read.test.js.map +0 -1
- package/dist/update-available.d.ts +0 -10
- package/dist/update-available.d.ts.map +0 -1
- package/dist/update-available.js +0 -36
- package/dist/update-available.js.map +0 -1
- package/dist/webpack-cache.d.ts.map +0 -1
- package/dist/webpack-cache.js.map +0 -1
- package/dist/webpack-config.d.ts.map +0 -1
- package/dist/webpack-config.js.map +0 -1
package/LICENSE.md
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
# Remotion License
|
|
2
2
|
|
|
3
|
-
Depending on the type of your legal entity, you are granted permission to use Remotion for your project. Individuals and small companies are allowed to use Remotion create videos for free (even commercial), while a company license is required for for-profit
|
|
3
|
+
Depending on the type of your legal entity, you are granted permission to use Remotion for your project. Individuals and small companies are allowed to use Remotion to create videos for free (even commercial), while a company license is required for for-profit organizations of a certain size. This two-tier system was designed to ensure funding for this project while still allowing the source code to be available and the program to be free for most. Read below for the exact terms of use.
|
|
4
4
|
|
|
5
5
|
- [Free license](#free-license)
|
|
6
6
|
- [Company license](#company-license)
|
|
7
7
|
|
|
8
8
|
## Free license
|
|
9
9
|
|
|
10
|
-
Copyright ©
|
|
10
|
+
Copyright © 2023 [Remotion](https://www.remotion.dev/)
|
|
11
11
|
|
|
12
12
|
### Eligibility
|
|
13
13
|
|
|
14
14
|
You are eligible to use Remotion for free if you are:
|
|
15
15
|
|
|
16
16
|
- an individual
|
|
17
|
-
- a for-profit
|
|
18
|
-
- a non-profit or not-for-profit
|
|
17
|
+
- a for-profit organization with up to 3 employees
|
|
18
|
+
- a non-profit or not-for-profit organization
|
|
19
19
|
- evaluating whether Remotion is a good fit, and are not yet using it in a commercial way
|
|
20
20
|
|
|
21
21
|
### Allowed use cases
|
|
22
22
|
|
|
23
|
-
Permission is hereby granted, free of charge, to any person eligible for the "Free license", to use the software non-commercially or commercially for the purpose of creating videos and images and to modify
|
|
23
|
+
Permission is hereby granted, free of charge, to any person eligible for the "Free license", to use the software non-commercially or commercially for the purpose of creating videos and images and to modify the software to their own liking, for the purpose of fulfilling their custom use case or to contribute bug fixes or improvements back to Remotion.
|
|
24
24
|
|
|
25
25
|
### Disallowed use cases
|
|
26
26
|
|
|
27
|
-
It is not allowed to copy or modify Remotion code for the purpose of selling, renting, licensing, relicensing, sublicensing your own derivate of Remotion.
|
|
27
|
+
It is not allowed to copy or modify Remotion code for the purpose of selling, renting, licensing, relicensing, or sublicensing your own derivate of Remotion.
|
|
28
28
|
|
|
29
29
|
### Warranty notice
|
|
30
30
|
|
|
31
|
-
The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and
|
|
31
|
+
The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and non-infringement. In no event shall the author or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.
|
|
32
32
|
|
|
33
33
|
### Support
|
|
34
34
|
|
|
@@ -36,6 +36,6 @@ Support is provided on a best-we-can-do basis via GitHub Issues and Discord.
|
|
|
36
36
|
|
|
37
37
|
## Company license
|
|
38
38
|
|
|
39
|
-
You are required to obtain a company license to use Remotion if you are not within the group of entities eligible for a free license. This license will enable you to use Remotion for the allowed use cases specified in the free license, and give you access to prioritized support.
|
|
39
|
+
You are required to obtain a company license to use Remotion if you are not within the group of entities eligible for a free license. This license will enable you to use Remotion for the allowed use cases specified in the free license, and give you access to prioritized support (read the [Support Policy](/docs/support)).
|
|
40
40
|
|
|
41
41
|
Visit [companies.remotion.dev](https://companies.remotion.dev) for pricing and to buy a license.
|
package/dist/bundle-mode.d.ts
CHANGED
package/dist/bundle-mode.js
CHANGED
|
File without changes
|
package/dist/bundle.d.ts
CHANGED
|
@@ -1,7 +1,30 @@
|
|
|
1
|
-
import { WebpackOverrideFn } from 'remotion';
|
|
2
|
-
|
|
1
|
+
import type { WebpackOverrideFn } from 'remotion';
|
|
2
|
+
import webpack from 'webpack';
|
|
3
|
+
export declare type LegacyBundleOptions = {
|
|
3
4
|
webpackOverride?: WebpackOverrideFn;
|
|
4
5
|
outDir?: string;
|
|
5
6
|
enableCaching?: boolean;
|
|
6
7
|
publicPath?: string;
|
|
7
|
-
|
|
8
|
+
rootDir?: string;
|
|
9
|
+
publicDir?: string | null;
|
|
10
|
+
onPublicDirCopyProgress?: (bytes: number) => void;
|
|
11
|
+
onSymlinkDetected?: (path: string) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, }: {
|
|
14
|
+
outDir: string;
|
|
15
|
+
entryPoint: string;
|
|
16
|
+
resolvedRemotionRoot: string;
|
|
17
|
+
onProgress?: ((progress: number) => void) | undefined;
|
|
18
|
+
options?: LegacyBundleOptions | undefined;
|
|
19
|
+
}) => [string, webpack.Configuration];
|
|
20
|
+
export declare type BundleOptions = {
|
|
21
|
+
entryPoint: string;
|
|
22
|
+
onProgress?: (progress: number) => void;
|
|
23
|
+
} & LegacyBundleOptions;
|
|
24
|
+
declare type Arguments = [options: BundleOptions] | [
|
|
25
|
+
entryPoint: string,
|
|
26
|
+
onProgress?: (progress: number) => void,
|
|
27
|
+
options?: LegacyBundleOptions
|
|
28
|
+
];
|
|
29
|
+
export declare function bundle(...args: Arguments): Promise<string>;
|
|
30
|
+
export {};
|
package/dist/bundle.js
CHANGED
|
@@ -3,17 +3,17 @@ 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
|
-
exports.bundle = void 0;
|
|
6
|
+
exports.bundle = exports.getConfig = void 0;
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const os_1 = __importDefault(require("os"));
|
|
9
9
|
const path_1 = __importDefault(require("path"));
|
|
10
|
-
const remotion_1 = require("remotion");
|
|
11
10
|
const util_1 = require("util");
|
|
12
11
|
const webpack_1 = __importDefault(require("webpack"));
|
|
12
|
+
const worker_threads_1 = require("worker_threads");
|
|
13
13
|
const copy_dir_1 = require("./copy-dir");
|
|
14
14
|
const index_html_1 = require("./index-html");
|
|
15
|
+
const read_recursively_1 = require("./read-recursively");
|
|
15
16
|
const webpack_config_1 = require("./webpack-config");
|
|
16
|
-
const entry = require.resolve('./renderEntry');
|
|
17
17
|
const promisified = (0, util_1.promisify)(webpack_1.default);
|
|
18
18
|
const prepareOutDir = async (specified) => {
|
|
19
19
|
if (specified) {
|
|
@@ -34,25 +34,83 @@ const trimTrailingSlash = (p) => {
|
|
|
34
34
|
}
|
|
35
35
|
return p;
|
|
36
36
|
};
|
|
37
|
-
const
|
|
37
|
+
const getConfig = ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, }) => {
|
|
38
|
+
var _a, _b;
|
|
39
|
+
const entry = require.resolve('./renderEntry');
|
|
40
|
+
return (0, webpack_config_1.webpackConfig)({
|
|
41
|
+
entry,
|
|
42
|
+
userDefinedComponent: entryPoint,
|
|
43
|
+
outDir,
|
|
44
|
+
environment: 'production',
|
|
45
|
+
webpackOverride: (_a = options === null || options === void 0 ? void 0 : options.webpackOverride) !== null && _a !== void 0 ? _a : ((f) => f),
|
|
46
|
+
onProgress,
|
|
47
|
+
enableCaching: (_b = options === null || options === void 0 ? void 0 : options.enableCaching) !== null && _b !== void 0 ? _b : true,
|
|
48
|
+
maxTimelineTracks: 15,
|
|
49
|
+
// For production, the variables are set dynamically
|
|
50
|
+
envVariables: {},
|
|
51
|
+
entryPoints: [],
|
|
52
|
+
remotionRoot: resolvedRemotionRoot,
|
|
53
|
+
keyboardShortcutsEnabled: false,
|
|
54
|
+
poll: null,
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
exports.getConfig = getConfig;
|
|
58
|
+
const convertArgumentsIntoOptions = (args) => {
|
|
59
|
+
var _a;
|
|
60
|
+
if (args.length === 0) {
|
|
61
|
+
throw new TypeError('bundle() was called without arguments');
|
|
62
|
+
}
|
|
63
|
+
const firstArg = args[0];
|
|
64
|
+
if (typeof firstArg === 'string') {
|
|
65
|
+
return {
|
|
66
|
+
entryPoint: firstArg,
|
|
67
|
+
onProgress: args[1],
|
|
68
|
+
...((_a = args[2]) !== null && _a !== void 0 ? _a : {}),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
if (typeof firstArg.entryPoint !== 'string') {
|
|
72
|
+
throw new TypeError('bundle() was called without the `entryPoint` option');
|
|
73
|
+
}
|
|
74
|
+
return firstArg;
|
|
75
|
+
};
|
|
76
|
+
const recursionLimit = 5;
|
|
77
|
+
const findClosestPackageJsonFolder = (currentDir) => {
|
|
78
|
+
let possiblePackageJson = '';
|
|
79
|
+
for (let i = 0; i < recursionLimit; i++) {
|
|
80
|
+
possiblePackageJson = path_1.default.join(currentDir, 'package.json');
|
|
81
|
+
const exists = fs_1.default.existsSync(possiblePackageJson);
|
|
82
|
+
if (exists) {
|
|
83
|
+
return path_1.default.dirname(possiblePackageJson);
|
|
84
|
+
}
|
|
85
|
+
currentDir = path_1.default.dirname(currentDir);
|
|
86
|
+
}
|
|
87
|
+
return null;
|
|
88
|
+
};
|
|
89
|
+
async function bundle(...args) {
|
|
38
90
|
var _a, _b, _c, _d;
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
91
|
+
const actualArgs = convertArgumentsIntoOptions(args);
|
|
92
|
+
const entryPoint = path_1.default.resolve(process.cwd(), actualArgs.entryPoint);
|
|
93
|
+
const resolvedRemotionRoot = (_b = (_a = actualArgs === null || actualArgs === void 0 ? void 0 : actualArgs.rootDir) !== null && _a !== void 0 ? _a : findClosestPackageJsonFolder(entryPoint)) !== null && _b !== void 0 ? _b : process.cwd();
|
|
94
|
+
const outDir = await prepareOutDir((_c = actualArgs === null || actualArgs === void 0 ? void 0 : actualArgs.outDir) !== null && _c !== void 0 ? _c : null);
|
|
95
|
+
// The config might use an override which might use
|
|
96
|
+
// `process.cwd()`. The context should always be the Remotion root.
|
|
97
|
+
// This is not supported in worker threads (used for tests)
|
|
98
|
+
const currentCwd = process.cwd();
|
|
99
|
+
if (worker_threads_1.isMainThread) {
|
|
100
|
+
process.chdir(resolvedRemotionRoot);
|
|
101
|
+
}
|
|
102
|
+
const { onProgress, ...options } = actualArgs;
|
|
103
|
+
const [, config] = (0, exports.getConfig)({
|
|
104
|
+
outDir,
|
|
105
|
+
entryPoint,
|
|
106
|
+
resolvedRemotionRoot,
|
|
107
|
+
onProgress,
|
|
108
|
+
options,
|
|
109
|
+
});
|
|
110
|
+
const output = await promisified([config]);
|
|
111
|
+
if (worker_threads_1.isMainThread) {
|
|
112
|
+
process.chdir(currentCwd);
|
|
113
|
+
}
|
|
56
114
|
if (!output) {
|
|
57
115
|
throw new Error('Expected webpack output');
|
|
58
116
|
}
|
|
@@ -60,18 +118,54 @@ const bundle = async (entryPoint, onProgressUpdate, options) => {
|
|
|
60
118
|
if (errors !== undefined && errors.length > 0) {
|
|
61
119
|
throw new Error(errors[0].message + '\n' + errors[0].details);
|
|
62
120
|
}
|
|
63
|
-
const baseDir = (_d =
|
|
64
|
-
const
|
|
121
|
+
const baseDir = (_d = actualArgs === null || actualArgs === void 0 ? void 0 : actualArgs.publicPath) !== null && _d !== void 0 ? _d : '/';
|
|
122
|
+
const staticHash = '/' +
|
|
65
123
|
[trimTrailingSlash(trimLeadingSlash(baseDir)), 'public']
|
|
66
124
|
.filter(Boolean)
|
|
67
125
|
.join('/');
|
|
68
|
-
const from =
|
|
126
|
+
const from = (options === null || options === void 0 ? void 0 : options.publicDir)
|
|
127
|
+
? path_1.default.resolve(resolvedRemotionRoot, options.publicDir)
|
|
128
|
+
: path_1.default.join(resolvedRemotionRoot, 'public');
|
|
69
129
|
const to = path_1.default.join(outDir, 'public');
|
|
130
|
+
let symlinkWarningShown = false;
|
|
131
|
+
const showSymlinkWarning = (ent, src) => {
|
|
132
|
+
if (symlinkWarningShown) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
const absolutePath = path_1.default.join(src, ent.name);
|
|
136
|
+
if (options.onSymlinkDetected) {
|
|
137
|
+
options.onSymlinkDetected(absolutePath);
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
symlinkWarningShown = true;
|
|
141
|
+
console.warn(`\nFound a symbolic link in the public folder (${absolutePath}). The symlink will be forwarded into the bundle.`);
|
|
142
|
+
};
|
|
70
143
|
if (fs_1.default.existsSync(from)) {
|
|
71
|
-
await (0, copy_dir_1.copyDir)(
|
|
144
|
+
await (0, copy_dir_1.copyDir)({
|
|
145
|
+
src: from,
|
|
146
|
+
dest: to,
|
|
147
|
+
onSymlinkDetected: showSymlinkWarning,
|
|
148
|
+
onProgress: (prog) => { var _a; return (_a = options.onPublicDirCopyProgress) === null || _a === void 0 ? void 0 : _a.call(options, prog); },
|
|
149
|
+
});
|
|
72
150
|
}
|
|
73
|
-
const html = (0, index_html_1.indexHtml)(
|
|
151
|
+
const html = (0, index_html_1.indexHtml)({
|
|
152
|
+
staticHash,
|
|
153
|
+
baseDir,
|
|
154
|
+
editorName: null,
|
|
155
|
+
inputProps: null,
|
|
156
|
+
remotionRoot: resolvedRemotionRoot,
|
|
157
|
+
previewServerCommand: null,
|
|
158
|
+
numberOfAudioTags: 0,
|
|
159
|
+
publicFiles: (0, read_recursively_1.readRecursively)({
|
|
160
|
+
folder: '.',
|
|
161
|
+
startPath: from,
|
|
162
|
+
staticHash,
|
|
163
|
+
limit: 1000,
|
|
164
|
+
}),
|
|
165
|
+
includeFavicon: false,
|
|
166
|
+
title: 'Remotion Bundle',
|
|
167
|
+
});
|
|
74
168
|
fs_1.default.writeFileSync(path_1.default.join(outDir, 'index.html'), html);
|
|
75
169
|
return outDir;
|
|
76
|
-
}
|
|
170
|
+
}
|
|
77
171
|
exports.bundle = bundle;
|
package/dist/copy-dir.d.ts
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import fs from 'fs';
|
|
3
|
+
export declare function copyDir({ src, dest, onSymlinkDetected, onProgress, }: {
|
|
4
|
+
src: string;
|
|
5
|
+
dest: string;
|
|
6
|
+
onSymlinkDetected: (entry: fs.Dirent, dir: string) => void;
|
|
7
|
+
onProgress: (bytes: number) => void;
|
|
8
|
+
}): Promise<void>;
|
package/dist/copy-dir.js
CHANGED
|
@@ -6,17 +6,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.copyDir = void 0;
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
|
-
async function copyDir(src, dest) {
|
|
9
|
+
async function copyDir({ src, dest, onSymlinkDetected, onProgress, }) {
|
|
10
10
|
await fs_1.default.promises.mkdir(dest, { recursive: true });
|
|
11
11
|
const entries = await fs_1.default.promises.readdir(src, { withFileTypes: true });
|
|
12
|
+
let copied = 0;
|
|
12
13
|
for (const entry of entries) {
|
|
13
14
|
const srcPath = path_1.default.join(src, entry.name);
|
|
14
15
|
const destPath = path_1.default.join(dest, entry.name);
|
|
15
16
|
if (entry.isDirectory()) {
|
|
16
|
-
await copyDir(
|
|
17
|
+
await copyDir({
|
|
18
|
+
src: srcPath,
|
|
19
|
+
dest: destPath,
|
|
20
|
+
onSymlinkDetected,
|
|
21
|
+
onProgress,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
else if (entry.isSymbolicLink()) {
|
|
25
|
+
const realpath = await fs_1.default.promises.realpath(srcPath);
|
|
26
|
+
onSymlinkDetected(entry, src);
|
|
27
|
+
await fs_1.default.promises.symlink(realpath, destPath);
|
|
17
28
|
}
|
|
18
29
|
else {
|
|
19
|
-
await
|
|
30
|
+
const [, { size }] = await Promise.all([
|
|
31
|
+
fs_1.default.promises.copyFile(srcPath, destPath),
|
|
32
|
+
fs_1.default.promises.stat(srcPath),
|
|
33
|
+
]);
|
|
34
|
+
copied += size;
|
|
35
|
+
onProgress(copied);
|
|
20
36
|
}
|
|
21
37
|
}
|
|
22
38
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import webpack from 'webpack';
|
|
2
|
-
import { LoaderOptions } from './interfaces';
|
|
1
|
+
import type webpack from 'webpack';
|
|
2
|
+
import type { LoaderOptions } from './interfaces';
|
|
3
3
|
declare function ESBuildLoader(this: webpack.LoaderContext<LoaderOptions>, source: string): Promise<void>;
|
|
4
4
|
export default ESBuildLoader;
|
|
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const esbuild_1 = require("esbuild");
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
|
-
const tsConfigPath = path_1.default.join(process.cwd(), 'tsconfig.json');
|
|
9
8
|
const isTsExtensionPtrn = /\.ts$/i;
|
|
10
9
|
const isTypescriptInstalled = () => {
|
|
11
10
|
try {
|
|
@@ -22,6 +21,7 @@ async function ESBuildLoader(source) {
|
|
|
22
21
|
this.getOptions();
|
|
23
22
|
const options = this.getOptions();
|
|
24
23
|
const { implementation, ...esbuildTransformOptions } = options;
|
|
24
|
+
const tsConfigPath = path_1.default.join(this.context, 'tsconfig.json');
|
|
25
25
|
if (implementation && typeof implementation.transform !== 'function') {
|
|
26
26
|
done(new TypeError(`esbuild-loader: options.implementation.transform must be an ESBuild transform function. Received ${typeof implementation.transform}`));
|
|
27
27
|
return;
|
|
@@ -35,6 +35,7 @@ async function ESBuildLoader(source) {
|
|
|
35
35
|
sourcefile: this.resourcePath,
|
|
36
36
|
};
|
|
37
37
|
if (!('tsconfigRaw' in transformOptions) && isTypescriptInstalled()) {
|
|
38
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
38
39
|
const typescript = require('typescript');
|
|
39
40
|
const tsConfig = typescript.readConfigFile(tsConfigPath, typescript.sys.readFile);
|
|
40
41
|
transformOptions.tsconfigRaw = tsConfig.config;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
25
|
* SOFTWARE.
|
|
26
26
|
*/
|
|
27
|
-
import webpack from 'webpack';
|
|
27
|
+
import type webpack from 'webpack';
|
|
28
28
|
export declare class ReactFreshWebpackPlugin {
|
|
29
29
|
apply(compiler: webpack.Compiler): void;
|
|
30
30
|
}
|
|
@@ -4,33 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ReactFreshWebpackPlugin = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* The MIT License (MIT)
|
|
9
|
-
*
|
|
10
|
-
* Copyright (c) 2020 Vercel, Inc.
|
|
11
|
-
*
|
|
12
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
14
|
-
* in the Software without restriction, including without limitation the rights
|
|
15
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
17
|
-
* furnished to do so, subject to the following conditions:
|
|
18
|
-
*
|
|
19
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
20
|
-
* copies or substantial portions of the Software.
|
|
21
|
-
*
|
|
22
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
28
|
-
* SOFTWARE.
|
|
29
|
-
*/
|
|
30
|
-
// This file is copied from the @vercel/next.js, with removed TS annotations
|
|
31
|
-
// minor tweaks, and removed all webpack v4-related functionality
|
|
32
|
-
//
|
|
33
|
-
// https://github.com/vercel/next.js/blob/canary/packages/react-refresh-utils/ReactRefreshWebpackPlugin.ts
|
|
34
7
|
const webpack_1 = require("webpack");
|
|
35
8
|
class ReactRefreshRuntimeModule extends webpack_1.RuntimeModule {
|
|
36
9
|
constructor() {
|
|
@@ -30,6 +30,6 @@
|
|
|
30
30
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
31
31
|
* SOFTWARE.
|
|
32
32
|
*/
|
|
33
|
-
import { LoaderDefinition } from 'webpack';
|
|
33
|
+
import type { LoaderDefinition } from 'webpack';
|
|
34
34
|
declare const ReactRefreshLoader: LoaderDefinition;
|
|
35
35
|
export default ReactRefreshLoader;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/index-html.d.ts
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import type { StaticFile } from 'remotion';
|
|
2
|
+
export declare const indexHtml: ({ baseDir, editorName, inputProps, envVariables, staticHash, remotionRoot, previewServerCommand, numberOfAudioTags, publicFiles, includeFavicon, title, }: {
|
|
3
|
+
staticHash: string;
|
|
4
|
+
baseDir: string;
|
|
5
|
+
editorName: string | null;
|
|
6
|
+
inputProps: object | null;
|
|
7
|
+
envVariables?: Record<string, string> | undefined;
|
|
8
|
+
remotionRoot: string;
|
|
9
|
+
previewServerCommand: string | null;
|
|
10
|
+
numberOfAudioTags: number;
|
|
11
|
+
publicFiles: StaticFile[];
|
|
12
|
+
includeFavicon: boolean;
|
|
13
|
+
title: string;
|
|
14
|
+
}) => string;
|
package/dist/index-html.js
CHANGED
|
@@ -5,25 +5,40 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.indexHtml = void 0;
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
|
-
const indexHtml = (staticHash,
|
|
8
|
+
const indexHtml = ({ baseDir, editorName, inputProps, envVariables, staticHash, remotionRoot, previewServerCommand, numberOfAudioTags, publicFiles, includeFavicon, title, }) => `
|
|
9
9
|
<!DOCTYPE html>
|
|
10
10
|
<html lang="en">
|
|
11
11
|
<head>
|
|
12
12
|
<meta charset="UTF-8" />
|
|
13
13
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
14
14
|
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
|
15
|
-
|
|
16
|
-
<
|
|
15
|
+
${includeFavicon
|
|
16
|
+
? ` <link rel="icon" type="image/png" href="/remotion.png" />\n`
|
|
17
|
+
: ''}
|
|
18
|
+
<title>${title}</title>
|
|
17
19
|
</head>
|
|
18
20
|
<body>
|
|
21
|
+
<script>window.remotion_numberOfAudioTags = ${numberOfAudioTags};</script>
|
|
19
22
|
<script>window.remotion_staticBase = "${staticHash}";</script>
|
|
20
23
|
<div id="video-container"></div>
|
|
21
24
|
<div id="explainer-container"></div>
|
|
22
25
|
${editorName
|
|
23
26
|
? `<script>window.remotion_editorName = "${editorName}";</script>`
|
|
24
27
|
: '<script>window.remotion_editorName = null;</script>'}
|
|
25
|
-
<script>window.remotion_projectName = ${JSON.stringify(path_1.default.basename(
|
|
26
|
-
<script>window.remotion_cwd = ${JSON.stringify(
|
|
28
|
+
<script>window.remotion_projectName = ${JSON.stringify(path_1.default.basename(remotionRoot))};</script>
|
|
29
|
+
<script>window.remotion_cwd = ${JSON.stringify(remotionRoot)};</script>
|
|
30
|
+
<script>window.remotion_previewServerCommand = ${previewServerCommand ? JSON.stringify(previewServerCommand) : 'null'};</script>
|
|
31
|
+
${inputProps
|
|
32
|
+
? `<script>window.remotion_inputProps = ${JSON.stringify(JSON.stringify(inputProps))};</script>
|
|
33
|
+
`
|
|
34
|
+
: ''}
|
|
35
|
+
${envVariables
|
|
36
|
+
? `<script> window.process = {
|
|
37
|
+
env: ${JSON.stringify(envVariables)}
|
|
38
|
+
};</script>
|
|
39
|
+
`
|
|
40
|
+
: ''}
|
|
41
|
+
<script>window.remotion_staticFiles = ${JSON.stringify(publicFiles)}</script>
|
|
27
42
|
|
|
28
43
|
<div id="container"></div>
|
|
29
44
|
<div id="menuportal-0"></div>
|
|
@@ -33,6 +48,7 @@ const indexHtml = (staticHash, baseDir, editorName) => `
|
|
|
33
48
|
<div id="menuportal-4"></div>
|
|
34
49
|
<div id="menuportal-5"></div>
|
|
35
50
|
<div id="remotion-error-overlay"></div>
|
|
51
|
+
<div id="server-disconnected-overlay"></div>
|
|
36
52
|
<script src="${baseDir}bundle.js"></script>
|
|
37
53
|
</body>
|
|
38
54
|
</html>
|
package/dist/index.d.ts
CHANGED
|
@@ -2,22 +2,51 @@ 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,
|
|
5
|
+
webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, envVariables, maxTimelineTracks, entryPoints, remotionRoot, keyboardShortcutsEnabled, poll, }: {
|
|
6
6
|
entry: string;
|
|
7
7
|
userDefinedComponent: string;
|
|
8
8
|
outDir: string;
|
|
9
9
|
environment: "development" | "production";
|
|
10
|
-
webpackOverride: import("remotion").WebpackOverrideFn;
|
|
11
|
-
|
|
10
|
+
webpackOverride: import("remotion/dist/internals").WebpackOverrideFn;
|
|
11
|
+
onProgress?: ((f: number) => void) | undefined;
|
|
12
12
|
enableCaching?: boolean | undefined;
|
|
13
|
-
inputProps: object;
|
|
14
13
|
envVariables: Record<string, string>;
|
|
15
14
|
maxTimelineTracks: number;
|
|
15
|
+
keyboardShortcutsEnabled: boolean;
|
|
16
16
|
entryPoints: string[];
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
remotionRoot: string;
|
|
18
|
+
poll: number | null;
|
|
19
|
+
}) => [string, webpack.Configuration];
|
|
20
|
+
indexHtml: ({ baseDir, editorName, inputProps, envVariables, staticHash, remotionRoot, previewServerCommand, numberOfAudioTags, publicFiles, includeFavicon, title, }: {
|
|
21
|
+
staticHash: string;
|
|
22
|
+
baseDir: string;
|
|
23
|
+
editorName: string | null;
|
|
24
|
+
inputProps: object | null;
|
|
25
|
+
envVariables?: Record<string, string> | undefined;
|
|
26
|
+
remotionRoot: string;
|
|
27
|
+
previewServerCommand: string | null;
|
|
28
|
+
numberOfAudioTags: number;
|
|
29
|
+
publicFiles: import("remotion").StaticFile[];
|
|
30
|
+
includeFavicon: boolean;
|
|
31
|
+
title: string;
|
|
32
|
+
}) => string;
|
|
33
|
+
cacheExists: (remotionRoot: string, environment: "development" | "production", hash: string) => "exists" | "other-exists" | "does-not-exist";
|
|
34
|
+
clearCache: (remotionRoot: string) => Promise<void>;
|
|
35
|
+
getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, }: {
|
|
36
|
+
outDir: string;
|
|
37
|
+
entryPoint: string;
|
|
38
|
+
resolvedRemotionRoot: string;
|
|
39
|
+
onProgress?: ((progress: number) => void) | undefined;
|
|
40
|
+
options?: import("./bundle").LegacyBundleOptions | undefined;
|
|
41
|
+
}) => [string, webpack.Configuration];
|
|
42
|
+
readRecursively: ({ folder, output, startPath, staticHash, limit, }: {
|
|
43
|
+
folder: string;
|
|
44
|
+
startPath: string;
|
|
45
|
+
output?: import("remotion").StaticFile[] | undefined;
|
|
46
|
+
staticHash: string;
|
|
47
|
+
limit: number;
|
|
48
|
+
}) => import("remotion").StaticFile[];
|
|
21
49
|
};
|
|
22
|
-
export { bundle } from './bundle';
|
|
50
|
+
export { bundle, BundleOptions, LegacyBundleOptions } from './bundle';
|
|
23
51
|
export { webpack };
|
|
52
|
+
export declare type WebpackConfiguration = webpack.Configuration;
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.webpack = exports.bundle = exports.BundlerInternals = void 0;
|
|
4
|
+
const bundle_1 = require("./bundle");
|
|
4
5
|
const index_html_1 = require("./index-html");
|
|
5
6
|
const webpack_cache_1 = require("./webpack-cache");
|
|
6
7
|
const webpack_config_1 = require("./webpack-config");
|
|
7
8
|
const esbuild = require("esbuild");
|
|
8
9
|
const webpack = require("webpack");
|
|
9
10
|
exports.webpack = webpack;
|
|
11
|
+
const read_recursively_1 = require("./read-recursively");
|
|
10
12
|
exports.BundlerInternals = {
|
|
11
13
|
esbuild,
|
|
12
14
|
webpackConfig: webpack_config_1.webpackConfig,
|
|
13
15
|
indexHtml: index_html_1.indexHtml,
|
|
14
16
|
cacheExists: webpack_cache_1.cacheExists,
|
|
15
17
|
clearCache: webpack_cache_1.clearCache,
|
|
18
|
+
getConfig: bundle_1.getConfig,
|
|
19
|
+
readRecursively: read_recursively_1.readRecursively,
|
|
16
20
|
};
|
|
17
|
-
var
|
|
18
|
-
Object.defineProperty(exports, "bundle", { enumerable: true, get: function () { return
|
|
21
|
+
var bundle_2 = require("./bundle");
|
|
22
|
+
Object.defineProperty(exports, "bundle", { enumerable: true, get: function () { return bundle_2.bundle; } });
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StaticFile } from 'remotion';
|
|
2
|
+
export declare const readRecursively: ({ folder, output, startPath, staticHash, limit, }: {
|
|
3
|
+
folder: string;
|
|
4
|
+
startPath: string;
|
|
5
|
+
output?: StaticFile[] | undefined;
|
|
6
|
+
staticHash: string;
|
|
7
|
+
limit: number;
|
|
8
|
+
}) => StaticFile[];
|