@remotion/bundler 3.0.0-lambda.338 → 3.0.0-lambda.355
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/dist/error-overlay/react-overlay/utils/path.d.ts +1 -1
- package/dist/error-overlay/react-overlay/utils/path.d.ts.map +1 -1
- package/dist/error-overlay/react-overlay/utils/path.js +0 -18
- package/dist/error-overlay/react-overlay/utils/path.js.map +1 -1
- package/dist/esbuild-loader/index.d.ts +5 -0
- package/dist/esbuild-loader/index.d.ts.map +1 -0
- package/dist/esbuild-loader/index.js +47 -0
- package/dist/esbuild-loader/index.js.map +1 -0
- package/dist/esbuild-loader/interfaces.d.ts +12 -0
- package/dist/esbuild-loader/interfaces.d.ts.map +1 -0
- package/dist/esbuild-loader/interfaces.js +3 -0
- package/dist/esbuild-loader/interfaces.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/webpack-config.d.ts.map +1 -1
- package/dist/webpack-config.js +10 -10
- package/dist/webpack-config.js.map +1 -1
- package/package.json +4 -4
- package/dist/dev-middleware/compatible.api.d.ts +0 -1
- package/dist/dev-middleware/compatible.api.d.ts.map +0 -1
- package/dist/dev-middleware/compatible.api.js +0 -2
- package/dist/dev-middleware/compatible.api.js.map +0 -1
- package/dist/dev-middleware/compatibleapi.d.ts +0 -1
- package/dist/dev-middleware/compatibleapi.d.ts.map +0 -1
- package/dist/dev-middleware/compatibleapi.js +0 -2
- package/dist/dev-middleware/compatibleapi.js.map +0 -1
- package/dist/error-overlay/entry-devserver.d.ts +0 -12
- package/dist/error-overlay/entry-devserver.d.ts.map +0 -1
- package/dist/error-overlay/entry-devserver.js +0 -36
- package/dist/error-overlay/entry-devserver.js.map +0 -1
- package/dist/error-overlay/index.d.ts +0 -5
- package/dist/error-overlay/index.d.ts.map +0 -1
- package/dist/error-overlay/index.js +0 -28
- package/dist/error-overlay/index.js.map +0 -1
- package/dist/error-overlay/react-overlay/stack-frame.d.ts +0 -47
- package/dist/error-overlay/react-overlay/stack-frame.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/stack-frame.js +0 -82
- package/dist/error-overlay/react-overlay/stack-frame.js.map +0 -1
- package/dist/setup-env-variables.d.ts +0 -2
- package/dist/setup-env-variables.d.ts.map +0 -1
- package/dist/setup-env-variables.js +0 -5
- package/dist/setup-env-variables.js.map +0 -1
- package/dist/test/latest-remotion-version.d.ts +0 -2
- package/dist/test/latest-remotion-version.d.ts.map +0 -1
- package/dist/test/latest-remotion-version.js +0 -7
- package/dist/test/latest-remotion-version.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare function normalizeStringPosix(path: string, allowAboveRoot: boolean): string;
|
|
2
2
|
//# sourceMappingURL=path.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/path.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/path.ts"],"names":[],"mappings":"AAIA,iBAAS,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,UAmElE"}
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
/*
|
|
3
3
|
Source code adapted from https://github.com/browserify/path-browserify and refactored in Typescript. This file is MIT-licensed.
|
|
4
4
|
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.pathNormalize = void 0;
|
|
7
5
|
function normalizeStringPosix(path, allowAboveRoot) {
|
|
8
6
|
let res = '';
|
|
9
7
|
let lastSegmentLength = 0;
|
|
@@ -79,20 +77,4 @@ function normalizeStringPosix(path, allowAboveRoot) {
|
|
|
79
77
|
}
|
|
80
78
|
return res;
|
|
81
79
|
}
|
|
82
|
-
function pathNormalize(path) {
|
|
83
|
-
if (path.length === 0)
|
|
84
|
-
return '.';
|
|
85
|
-
const isAbsolute = path.charCodeAt(0) === 47; /* / */
|
|
86
|
-
const trailingSeparator = path.charCodeAt(path.length - 1) === 47; /* / */
|
|
87
|
-
// Normalize the path
|
|
88
|
-
path = normalizeStringPosix(path, !isAbsolute);
|
|
89
|
-
if (path.length === 0 && !isAbsolute)
|
|
90
|
-
path = '.';
|
|
91
|
-
if (path.length > 0 && trailingSeparator)
|
|
92
|
-
path += '/';
|
|
93
|
-
if (isAbsolute)
|
|
94
|
-
return '/' + path;
|
|
95
|
-
return path;
|
|
96
|
-
}
|
|
97
|
-
exports.pathNormalize = pathNormalize;
|
|
98
80
|
//# sourceMappingURL=path.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path.js","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/path.ts"],"names":[],"mappings":";AAAA;;EAEE
|
|
1
|
+
{"version":3,"file":"path.js","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/path.ts"],"names":[],"mappings":";AAAA;;EAEE;AAEF,SAAS,oBAAoB,CAAC,IAAY,EAAE,cAAuB;IAClE,IAAI,GAAG,GAAG,EAAE,CAAC;IACb,IAAI,iBAAiB,GAAG,CAAC,CAAC;IAC1B,IAAI,SAAS,GAAG,CAAC,CAAC,CAAC;IACnB,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,IAAI,IAAI,CAAC;IACT,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;QACtC,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM;YAAE,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;aAC1C,IAAI,IAAI,KAAK,EAAE,CAAC,OAAO;YAAE,MAAM;;YAC/B,IAAI,GAAG,EAAE,CAAC,OAAO,CAAC;QACvB,IAAI,IAAI,KAAK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,IAAI,GAAG,CAAC,CAAC;wBACT,SAAS;qBACT;iBACD;gBAED,IAAI,cAAc,EAAE;oBACnB,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC;wBAAE,GAAG,IAAI,KAAK,CAAC;;wBAC5B,GAAG,GAAG,IAAI,CAAC;oBAChB,iBAAiB,GAAG,CAAC,CAAC;iBACtB;aACD;iBAAM;gBACN,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC;oBAAE,GAAG,IAAI,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;;oBACzD,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;gBACxC,iBAAiB,GAAG,CAAC,GAAG,SAAS,GAAG,CAAC,CAAC;aACtC;YAED,SAAS,GAAG,CAAC,CAAC;YACd,IAAI,GAAG,CAAC,CAAC;SACT;aAAM,IAAI,IAAI,KAAK,EAAE,CAAC,OAAO,IAAI,IAAI,KAAK,CAAC,CAAC,EAAE;YAC9C,EAAE,IAAI,CAAC;SACP;aAAM;YACN,IAAI,GAAG,CAAC,CAAC,CAAC;SACV;KACD;IAED,OAAO,GAAG,CAAC;AACZ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/esbuild-loader/index.ts"],"names":[],"mappings":"AAGA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAC,aAAa,EAAC,MAAM,cAAc,CAAC;AAM3C,iBAAe,aAAa,CAC3B,IAAI,EAAE,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,EAC1C,MAAM,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC,CAgDf;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const path_1 = __importDefault(require("path"));
|
|
7
|
+
const esbuild_1 = require("esbuild");
|
|
8
|
+
const typescript_1 = __importDefault(require("typescript"));
|
|
9
|
+
const tsConfigPath = path_1.default.join(process.cwd(), 'tsconfig.json');
|
|
10
|
+
const isTsExtensionPtrn = /\.ts$/i;
|
|
11
|
+
async function ESBuildLoader(source) {
|
|
12
|
+
var _a, _b, _c;
|
|
13
|
+
const done = this.async();
|
|
14
|
+
this.getOptions();
|
|
15
|
+
const options = this.getOptions();
|
|
16
|
+
const { implementation, ...esbuildTransformOptions } = options;
|
|
17
|
+
if (implementation && typeof implementation.transform !== 'function') {
|
|
18
|
+
done(new TypeError(`esbuild-loader: options.implementation.transform must be an ESBuild transform function. Received ${typeof implementation.transform}`));
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const transform = (_a = implementation === null || implementation === void 0 ? void 0 : implementation.transform) !== null && _a !== void 0 ? _a : esbuild_1.transform;
|
|
22
|
+
const transformOptions = {
|
|
23
|
+
...esbuildTransformOptions,
|
|
24
|
+
target: (_b = options.target) !== null && _b !== void 0 ? _b : 'es2015',
|
|
25
|
+
loader: (_c = options.loader) !== null && _c !== void 0 ? _c : 'js',
|
|
26
|
+
sourcemap: this.sourceMap,
|
|
27
|
+
sourcefile: this.resourcePath,
|
|
28
|
+
};
|
|
29
|
+
if (!('tsconfigRaw' in transformOptions)) {
|
|
30
|
+
const tsConfig = typescript_1.default.readConfigFile(tsConfigPath, typescript_1.default.sys.readFile);
|
|
31
|
+
transformOptions.tsconfigRaw = tsConfig.config;
|
|
32
|
+
}
|
|
33
|
+
// https://github.com/privatenumber/esbuild-loader/pull/107
|
|
34
|
+
if (transformOptions.loader === 'tsx' &&
|
|
35
|
+
isTsExtensionPtrn.test(this.resourcePath)) {
|
|
36
|
+
transformOptions.loader = 'ts';
|
|
37
|
+
}
|
|
38
|
+
try {
|
|
39
|
+
const { code, map } = await transform(source, transformOptions);
|
|
40
|
+
done(null, code, map && JSON.parse(map));
|
|
41
|
+
}
|
|
42
|
+
catch (error) {
|
|
43
|
+
done(error);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.default = ESBuildLoader;
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/esbuild-loader/index.ts"],"names":[],"mappings":";;;;;AAAA,gDAAwB;AACxB,qCAA6D;AAC7D,4DAAoC;AAIpC,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,eAAe,CAAC,CAAC;AAE/D,MAAM,iBAAiB,GAAG,QAAQ,CAAC;AAEnC,KAAK,UAAU,aAAa,CAE3B,MAAc;;IAEd,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;IAC1B,IAAI,CAAC,UAAU,EAAE,CAAC;IAClB,MAAM,OAAO,GAAkB,IAAI,CAAC,UAAU,EAAE,CAAC;IACjD,MAAM,EAAC,cAAc,EAAE,GAAG,uBAAuB,EAAC,GAAG,OAAO,CAAC;IAE7D,IAAI,cAAc,IAAI,OAAO,cAAc,CAAC,SAAS,KAAK,UAAU,EAAE;QACrE,IAAI,CACH,IAAI,SAAS,CACZ,oGAAoG,OAAO,cAAc,CAAC,SAAS,EAAE,CACrI,CACD,CAAC;QACF,OAAO;KACP;IAED,MAAM,SAAS,GAAG,MAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,SAAS,mCAAI,mBAAuB,CAAC;IAEvE,MAAM,gBAAgB,GAAG;QACxB,GAAG,uBAAuB;QAC1B,MAAM,EAAE,MAAA,OAAO,CAAC,MAAM,mCAAI,QAAQ;QAClC,MAAM,EAAE,MAAA,OAAO,CAAC,MAAM,mCAAI,IAAI;QAC9B,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,UAAU,EAAE,IAAI,CAAC,YAAY;KAC7B,CAAC;IAEF,IAAI,CAAC,CAAC,aAAa,IAAI,gBAAgB,CAAC,EAAE;QACzC,MAAM,QAAQ,GAAG,oBAAU,CAAC,cAAc,CACzC,YAAY,EACZ,oBAAU,CAAC,GAAG,CAAC,QAAQ,CACvB,CAAC;QAEF,gBAAgB,CAAC,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC;KAC/C;IAED,2DAA2D;IAC3D,IACC,gBAAgB,CAAC,MAAM,KAAK,KAAK;QACjC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,EACxC;QACD,gBAAgB,CAAC,MAAM,GAAG,IAAI,CAAC;KAC/B;IAED,IAAI;QACH,MAAM,EAAC,IAAI,EAAE,GAAG,EAAC,GAAG,MAAM,SAAS,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;QAC9D,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;KACzC;IAAC,OAAO,KAAc,EAAE;QACxB,IAAI,CAAC,KAAc,CAAC,CAAC;KACrB;AACF,CAAC;AAED,kBAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { transform, TransformOptions } from 'esbuild';
|
|
2
|
+
declare type Implementation = {
|
|
3
|
+
transform: typeof transform;
|
|
4
|
+
};
|
|
5
|
+
declare type Except<ObjectType, Properties> = {
|
|
6
|
+
[Key in keyof ObjectType as Key extends Properties ? never : Key]: ObjectType[Key];
|
|
7
|
+
};
|
|
8
|
+
export declare type LoaderOptions = Except<TransformOptions, 'sourcemap' | 'sourcefile'> & {
|
|
9
|
+
implementation: Implementation;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/esbuild-loader/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAEpD,aAAK,cAAc,GAAG;IACrB,SAAS,EAAE,OAAO,SAAS,CAAC;CAC5B,CAAC;AAEF,aAAK,MAAM,CAAC,UAAU,EAAE,UAAU,IAAI;KACpC,GAAG,IAAI,MAAM,UAAU,IAAI,GAAG,SAAS,UAAU,GAC/C,KAAK,GACL,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;CACxB,CAAC;AAEF,oBAAY,aAAa,GAAG,MAAM,CACjC,gBAAgB,EAChB,WAAW,GAAG,YAAY,CAC1B,GAAG;IACH,cAAc,EAAE,cAAc,CAAC;CAC/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/esbuild-loader/interfaces.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { overrideWebpackConfig } from './override-webpack';
|
|
2
|
+
import esbuild = require('esbuild');
|
|
2
3
|
export declare const BundlerInternals: {
|
|
3
4
|
startServer: (entry: string, userDefinedComponent: string, options?: {
|
|
4
5
|
webpackOverride?: import("remotion").WebpackOverrideFn | undefined;
|
|
@@ -15,6 +16,7 @@ export declare const BundlerInternals: {
|
|
|
15
16
|
manager: import("./get-package-manager").PackageManager;
|
|
16
17
|
path: string;
|
|
17
18
|
}[];
|
|
19
|
+
esbuild: typeof esbuild;
|
|
18
20
|
};
|
|
19
21
|
export type { ProjectInfo } from './project-info';
|
|
20
22
|
export { bundle } from './bundler';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AAGzD,OAAO,OAAO,GAAG,QAAQ,SAAS,CAAC,CAAC;AAEpC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;CAQ5B,CAAC;AAEF,YAAY,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAC,MAAM,EAAC,MAAM,WAAW,CAAC;AACjC,OAAO,EAAC,qBAAqB,EAAC,CAAC;AAC/B,OAAO,EAAC,cAAc,EAAC,MAAM,uBAAuB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,7 @@ const override_webpack_1 = require("./override-webpack");
|
|
|
7
7
|
Object.defineProperty(exports, "overrideWebpackConfig", { enumerable: true, get: function () { return override_webpack_1.overrideWebpackConfig; } });
|
|
8
8
|
const start_server_1 = require("./start-server");
|
|
9
9
|
const webpack_cache_1 = require("./webpack-cache");
|
|
10
|
+
const esbuild = require("esbuild");
|
|
10
11
|
exports.BundlerInternals = {
|
|
11
12
|
startServer: start_server_1.startServer,
|
|
12
13
|
cacheExists: webpack_cache_1.cacheExists,
|
|
@@ -14,6 +15,7 @@ exports.BundlerInternals = {
|
|
|
14
15
|
getLatestRemotionVersion: get_latest_remotion_version_1.getLatestRemotionVersion,
|
|
15
16
|
getPackageManager: get_package_manager_1.getPackageManager,
|
|
16
17
|
lockFilePaths: get_package_manager_1.lockFilePaths,
|
|
18
|
+
esbuild,
|
|
17
19
|
};
|
|
18
20
|
var bundler_1 = require("./bundler");
|
|
19
21
|
Object.defineProperty(exports, "bundle", { enumerable: true, get: function () { return bundler_1.bundle; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,+EAAuE;AACvE,+DAAuE;AACvE,yDAAyD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,+EAAuE;AACvE,+DAAuE;AACvE,yDAAyD;AAkBjD,sGAlBA,wCAAqB,OAkBA;AAjB7B,iDAA2C;AAC3C,mDAAwD;AACxD,mCAAoC;AAEvB,QAAA,gBAAgB,GAAG;IAC/B,WAAW,EAAX,0BAAW;IACX,WAAW,EAAX,2BAAW;IACX,UAAU,EAAV,0BAAU;IACV,wBAAwB,EAAxB,sDAAwB;IACxB,iBAAiB,EAAjB,uCAAiB;IACjB,aAAa,EAAb,mCAAa;IACb,OAAO;CACP,CAAC;AAIF,qCAAiC;AAAzB,iGAAA,MAAM,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webpack-config.d.ts","sourceRoot":"","sources":["../src/webpack-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,oBAAoB,EAAE,iBAAiB,EAAC,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"webpack-config.d.ts","sourceRoot":"","sources":["../src/webpack-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,oBAAoB,EAAE,iBAAiB,EAAC,MAAM,UAAU,CAAC;AAmB5E,eAAO,MAAM,aAAa;WAYlB,MAAM;0BACS,MAAM;YACpB,MAAM;iBACD,aAAa,GAAG,YAAY;;4BAElB,MAAM,KAAK,IAAI;;;;uBAInB,MAAM;MACtB,oBAsKH,CAAC"}
|
package/dist/webpack-config.js
CHANGED
|
@@ -28,6 +28,12 @@ const remotion_1 = require("remotion");
|
|
|
28
28
|
const webpack_1 = __importStar(require("webpack"));
|
|
29
29
|
const fast_refresh_1 = require("./fast-refresh");
|
|
30
30
|
const webpack_cache_1 = require("./webpack-cache");
|
|
31
|
+
const esbuild = require("esbuild");
|
|
32
|
+
const esbuildLoaderOptions = {
|
|
33
|
+
target: 'chrome85',
|
|
34
|
+
loader: 'tsx',
|
|
35
|
+
implementation: esbuild,
|
|
36
|
+
};
|
|
31
37
|
function truthy(value) {
|
|
32
38
|
return Boolean(value);
|
|
33
39
|
}
|
|
@@ -144,11 +150,8 @@ const webpackConfig = ({ entry, userDefinedComponent, outDir, environment, webpa
|
|
|
144
150
|
test: /\.tsx?$/,
|
|
145
151
|
use: [
|
|
146
152
|
{
|
|
147
|
-
loader: require.resolve('esbuild-loader'),
|
|
148
|
-
options:
|
|
149
|
-
loader: 'tsx',
|
|
150
|
-
target: 'chrome85',
|
|
151
|
-
},
|
|
153
|
+
loader: require.resolve('./esbuild-loader/index.js'),
|
|
154
|
+
options: esbuildLoaderOptions,
|
|
152
155
|
},
|
|
153
156
|
environment === 'development'
|
|
154
157
|
? {
|
|
@@ -175,11 +178,8 @@ const webpackConfig = ({ entry, userDefinedComponent, outDir, environment, webpa
|
|
|
175
178
|
exclude: /node_modules/,
|
|
176
179
|
use: [
|
|
177
180
|
{
|
|
178
|
-
loader: require.resolve('esbuild-loader'),
|
|
179
|
-
options:
|
|
180
|
-
loader: 'jsx',
|
|
181
|
-
target: 'chrome85',
|
|
182
|
-
},
|
|
181
|
+
loader: require.resolve('./esbuild-loader/index.js'),
|
|
182
|
+
options: esbuildLoaderOptions,
|
|
183
183
|
},
|
|
184
184
|
environment === 'development'
|
|
185
185
|
? {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webpack-config.js","sourceRoot":"","sources":["../src/webpack-config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,uCAA4E;AAC5E,mDAAgD;
|
|
1
|
+
{"version":3,"file":"webpack-config.js","sourceRoot":"","sources":["../src/webpack-config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,uCAA4E;AAC5E,mDAAgD;AAEhD,iDAAuD;AACvD,mDAAoD;AACpD,mCAAoC;AAEpC,MAAM,oBAAoB,GAAkB;IAC3C,M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CAAC,IAAI;qBACP,CAAC,MAAM,CAAC,MAAM,CAAC;iBAChB;gBACD;oBACC,IAAI,EAAE,+CAA+C;oBACrD,GAAG,EAAE;wBACJ;4BACC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC;4BACtC,OAAO,EAAE;gCACR,sCAAsC;gCACtC,IAAI,EAAE,cAAc;gCACpB,UAAU,EAAE,QAAQ;6BACpB;yBACD;qBACD;iBACD;gBACD;oBACC,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE,cAAc;oBACvB,GAAG,EAAE;wBACJ;4BACC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,2BAA2B,CAAC;4BACpD,OAAO,EAAE,oBAAoB;yBAC7B;wBACD,WAAW,KAAK,aAAa;4BAC5B,CAAC,CAAC;gCACA,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,0BAA0B,CAAC;6BAClD;4BACH,CAAC,CAAC,IAAI;qBACP,CAAC,MAAM,CAAC,MAAM,CAAC;iBAChB;gBACD;oBACC,IAAI,EAAE,OAAO;oBACb,OAAO,EAAE,KAAK;oBACd,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;iBAC3C;aACD;SACD;QACD,cAAc,EAAE,CAAC,4BAA4B,CAAC;KAC9C,CAAC,CAAC;AACJ,CAAC,CAAC;AA5LW,QAAA,aAAa,iBA4LxB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/bundler",
|
|
3
|
-
"version": "3.0.0-lambda.
|
|
3
|
+
"version": "3.0.0-lambda.355+6b0269d52",
|
|
4
4
|
"description": "Bundler for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"css-loader": "^5.0.1",
|
|
24
|
-
"esbuild
|
|
24
|
+
"esbuild": "0.14.19",
|
|
25
25
|
"execa": "^4.0.3",
|
|
26
26
|
"express": "^4.17.1",
|
|
27
27
|
"file-loader": "^6.2.0",
|
|
28
28
|
"memfs": "^3.4.0",
|
|
29
29
|
"mime-types": "^2.1.34",
|
|
30
30
|
"react-refresh": "^0.9.0-rc.2",
|
|
31
|
-
"remotion": "3.0.0-lambda.
|
|
31
|
+
"remotion": "3.0.0-lambda.355+6b0269d52",
|
|
32
32
|
"semver": "7.3.4",
|
|
33
33
|
"source-map": "^0.5.7",
|
|
34
34
|
"source-map-loader": "^3.0.0",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "6b0269d521917110a18d5ed0113afe784fd7113e"
|
|
60
60
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=compatible.api.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compatible.api.d.ts","sourceRoot":"","sources":["../../src/dev-middleware/compatible.api.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compatible.api.js","sourceRoot":"","sources":["../../src/dev-middleware/compatible.api.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=compatibleapi.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compatibleapi.d.ts","sourceRoot":"","sources":["../../src/dev-middleware/compatibleapi.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compatibleapi.js","sourceRoot":"","sources":["../../src/dev-middleware/compatibleapi.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
declare const querystring: any;
|
|
2
|
-
declare const url: any;
|
|
3
|
-
declare const SockJS: any;
|
|
4
|
-
declare const formatWebpackMessages: any;
|
|
5
|
-
declare const reportBuildError: any, dismissBuildError: any;
|
|
6
|
-
declare let sockOptions: {
|
|
7
|
-
sockHost?: string;
|
|
8
|
-
sockPort?: string;
|
|
9
|
-
sockPath?: string;
|
|
10
|
-
};
|
|
11
|
-
declare const connection: any;
|
|
12
|
-
//# sourceMappingURL=entry-devserver.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entry-devserver.d.ts","sourceRoot":"","sources":["../../src/error-overlay/entry-devserver.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,WAAW,KAAyB,CAAC;AAC3C,QAAA,MAAM,GAAG,KAAiB,CAAC;AAC3B,QAAA,MAAM,MAAM,KAA2B,CAAC;AACxC,QAAA,MAAM,qBAAqB,KAAmD,CAAC;AAC/E,QAAA,MAAO,gBAAgB,OAAE,iBAAiB,KAAkC,CAAC;AAE7E,QAAA,IAAI,WAAW,EAAE;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAKP,QAAA,MAAM,UAAU,KAOf,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// @ts-check
|
|
3
|
-
const querystring = require('querystring');
|
|
4
|
-
const url = require('url');
|
|
5
|
-
const SockJS = require('sockjs-client');
|
|
6
|
-
const formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
|
|
7
|
-
const { reportBuildError, dismissBuildError } = require('react-error-overlay');
|
|
8
|
-
let sockOptions = {};
|
|
9
|
-
if (typeof __resourceQuery === 'string' && __resourceQuery.length > 1) {
|
|
10
|
-
sockOptions = querystring.parse(__resourceQuery.substr(1));
|
|
11
|
-
}
|
|
12
|
-
const connection = new SockJS(url.format({
|
|
13
|
-
protocol: window.location.protocol,
|
|
14
|
-
hostname: sockOptions.sockHost || window.location.hostname,
|
|
15
|
-
port: sockOptions.sockPort || window.location.port,
|
|
16
|
-
pathname: sockOptions.sockPath || '/sockjs-node',
|
|
17
|
-
}));
|
|
18
|
-
connection.onmessage = function (e) {
|
|
19
|
-
const { type, data } = JSON.parse(e.data);
|
|
20
|
-
let formatted;
|
|
21
|
-
switch (type) {
|
|
22
|
-
case 'ok':
|
|
23
|
-
dismissBuildError();
|
|
24
|
-
break;
|
|
25
|
-
case 'errors':
|
|
26
|
-
formatted = formatWebpackMessages({
|
|
27
|
-
errors: data,
|
|
28
|
-
warnings: [],
|
|
29
|
-
});
|
|
30
|
-
reportBuildError(formatted.errors[0]);
|
|
31
|
-
break;
|
|
32
|
-
default:
|
|
33
|
-
// Do nothing.
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=entry-devserver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entry-devserver.js","sourceRoot":"","sources":["../../src/error-overlay/entry-devserver.ts"],"names":[],"mappings":";AAAA,YAAY;AACZ,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAC3C,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;AAC3B,MAAM,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AACxC,MAAM,qBAAqB,GAAG,OAAO,CAAC,uCAAuC,CAAC,CAAC;AAC/E,MAAM,EAAC,gBAAgB,EAAE,iBAAiB,EAAC,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AAE7E,IAAI,WAAW,GAIX,EAAE,CAAC;AACP,IAAI,OAAO,eAAe,KAAK,QAAQ,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE;IACtE,WAAW,GAAG,WAAW,CAAC,KAAK,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;CAC3D;AAED,MAAM,UAAU,GAAG,IAAI,MAAM,CAC5B,GAAG,CAAC,MAAM,CAAC;IACV,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ;IAClC,QAAQ,EAAE,WAAW,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,QAAQ;IAC1D,IAAI,EAAE,WAAW,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI;IAClD,QAAQ,EAAE,WAAW,CAAC,QAAQ,IAAI,cAAc;CAChD,CAAC,CACF,CAAC;AAEF,UAAU,CAAC,SAAS,GAAG,UAAU,CAAiB;IACjD,MAAM,EAAC,IAAI,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACxC,IAAI,SAAS,CAAC;IACd,QAAQ,IAAI,EAAE;QACb,KAAK,IAAI;YACR,iBAAiB,EAAE,CAAC;YACpB,MAAM;QACP,KAAK,QAAQ;YACZ,SAAS,GAAG,qBAAqB,CAAC;gBACjC,MAAM,EAAE,IAAI;gBACZ,QAAQ,EAAE,EAAE;aACZ,CAAC,CAAC;YACH,gBAAgB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;YACtC,MAAM;QACP,QAAQ;QACR,cAAc;KACd;AACF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/error-overlay/index.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,SAAS,CAAC;AAc9B,qBAAa,kBAAkB;IAC9B,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ;CAsBhC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ErrorOverlayPlugin = void 0;
|
|
4
|
-
const errorOverlayMiddleware = require('react-dev-utils/errorOverlayMiddleware');
|
|
5
|
-
const chunkPathBasic = require.resolve('./entry-basic.js');
|
|
6
|
-
const chunkPathDevServer = require.resolve('./entry-devserver.js');
|
|
7
|
-
const deps = [];
|
|
8
|
-
class ErrorOverlayPlugin {
|
|
9
|
-
apply(compiler) {
|
|
10
|
-
const className = this.constructor.name;
|
|
11
|
-
if (compiler.options.mode !== 'development') {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
if (!compiler.options.devServer) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
const devServerEnabled = Boolean(compiler.options.devServer);
|
|
18
|
-
const usingSocket = devServerEnabled && typeof compiler.options.devServer.socket === 'string';
|
|
19
|
-
const sockOptions = {};
|
|
20
|
-
if (devServerEnabled && usingSocket) {
|
|
21
|
-
sockOptions.sockHost = compiler.options.devServer.sockHost;
|
|
22
|
-
sockOptions.sockPath = compiler.options.devServer.sockPath;
|
|
23
|
-
sockOptions.sockPort = compiler.options.devServer.sockPort;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.ErrorOverlayPlugin = ErrorOverlayPlugin;
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/error-overlay/index.ts"],"names":[],"mappings":";;;AAGA,MAAM,sBAAsB,GAAG,OAAO,CAAC,wCAAwC,CAAC,CAAC;AAEjF,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAC3D,MAAM,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;AACnE,MAAM,IAAI,GAAa,EAAE,CAAC;AAQ1B,MAAa,kBAAkB;IAC9B,KAAK,CAAC,QAA0B;QAC/B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAExC,IAAI,QAAQ,CAAC,OAAO,CAAC,IAAI,KAAK,aAAa,EAAE;YAC5C,OAAO;SACP;QAED,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,EAAE;YAChC,OAAO;SACP;QAED,MAAM,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAC7D,MAAM,WAAW,GAChB,gBAAgB,IAAI,OAAO,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,KAAK,QAAQ,CAAC;QAE3E,MAAM,WAAW,GAAgB,EAAE,CAAC;QACpC,IAAI,gBAAgB,IAAI,WAAW,EAAE;YACpC,WAAW,CAAC,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC;YAC3D,WAAW,CAAC,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC;YAC3D,WAAW,CAAC,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC;SAC3D;IACF,CAAC;CACD;AAvBD,gDAuBC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
/** A container holding a script line. */
|
|
8
|
-
declare class ScriptLine {
|
|
9
|
-
/** The line number of this line of source. */
|
|
10
|
-
lineNumber: number;
|
|
11
|
-
/** The content (or value) of this line of source. */
|
|
12
|
-
content: string;
|
|
13
|
-
/** Whether or not this line should be highlighted. Particularly useful for error reporting with context. */
|
|
14
|
-
highlight: boolean;
|
|
15
|
-
constructor(lineNumber: number, content: string, highlight?: boolean);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* A representation of a stack frame.
|
|
19
|
-
*/
|
|
20
|
-
export declare class StackFrame {
|
|
21
|
-
functionName: string | null;
|
|
22
|
-
fileName: string | null;
|
|
23
|
-
lineNumber: number | null;
|
|
24
|
-
columnNumber: number | null;
|
|
25
|
-
_originalFunctionName: string | null;
|
|
26
|
-
_originalFileName: string | null;
|
|
27
|
-
_originalLineNumber: number | null;
|
|
28
|
-
_originalColumnNumber: number | null;
|
|
29
|
-
_scriptCode: ScriptLine[] | null;
|
|
30
|
-
_originalScriptCode: ScriptLine[] | null;
|
|
31
|
-
constructor(functionName?: string | null, fileName?: string | null, lineNumber?: number | null, columnNumber?: number | null, scriptCode?: ScriptLine[] | null, sourceFunctionName?: string | null, sourceFileName?: string | null, sourceLineNumber?: number | null, sourceColumnNumber?: number | null, sourceScriptCode?: ScriptLine[] | null);
|
|
32
|
-
/**
|
|
33
|
-
* Returns the name of this function.
|
|
34
|
-
*/
|
|
35
|
-
getFunctionName(): string;
|
|
36
|
-
/**
|
|
37
|
-
* Returns the source of the frame.
|
|
38
|
-
* This contains the file name, line number, and column number when available.
|
|
39
|
-
*/
|
|
40
|
-
getSource(): string;
|
|
41
|
-
/**
|
|
42
|
-
* Returns a pretty version of this stack frame.
|
|
43
|
-
*/
|
|
44
|
-
toString(): string;
|
|
45
|
-
}
|
|
46
|
-
export {};
|
|
47
|
-
//# sourceMappingURL=stack-frame.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stack-frame.d.ts","sourceRoot":"","sources":["../../../src/error-overlay/react-overlay/stack-frame.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,yCAAyC;AACzC,cAAM,UAAU;IACf,8CAA8C;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAC;IAChB,4GAA4G;IAC5G,SAAS,EAAE,OAAO,CAAC;gBAEP,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,UAAQ;CAKlE;AAED;;GAEG;AACH,qBAAa,UAAU;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC,WAAW,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IACjC,mBAAmB,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;gBAIxC,YAAY,GAAE,MAAM,GAAG,IAAW,EAClC,QAAQ,GAAE,MAAM,GAAG,IAAW,EAC9B,UAAU,GAAE,MAAM,GAAG,IAAW,EAChC,YAAY,GAAE,MAAM,GAAG,IAAW,EAClC,UAAU,GAAE,UAAU,EAAE,GAAG,IAAW,EACtC,kBAAkB,GAAE,MAAM,GAAG,IAAW,EACxC,cAAc,GAAE,MAAM,GAAG,IAAW,EACpC,gBAAgB,GAAE,MAAM,GAAG,IAAW,EACtC,kBAAkB,GAAE,MAAM,GAAG,IAAW,EACxC,gBAAgB,GAAE,UAAU,EAAE,GAAG,IAAW;IAiC7C;;OAEG;IACH,eAAe,IAAI,MAAM;IAIzB;;;OAGG;IACH,SAAS,IAAI,MAAM;IAiBnB;;OAEG;IACH,QAAQ,IAAI,MAAM;CAKlB"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the MIT license found in the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.StackFrame = void 0;
|
|
10
|
-
/* @flow */
|
|
11
|
-
/** A container holding a script line. */
|
|
12
|
-
class ScriptLine {
|
|
13
|
-
constructor(lineNumber, content, highlight = false) {
|
|
14
|
-
this.lineNumber = lineNumber;
|
|
15
|
-
this.content = content;
|
|
16
|
-
this.highlight = highlight;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* A representation of a stack frame.
|
|
21
|
-
*/
|
|
22
|
-
class StackFrame {
|
|
23
|
-
// eslint-disable-next-line max-params
|
|
24
|
-
constructor(functionName = null, fileName = null, lineNumber = null, columnNumber = null, scriptCode = null, sourceFunctionName = null, sourceFileName = null, sourceLineNumber = null, sourceColumnNumber = null, sourceScriptCode = null) {
|
|
25
|
-
if (functionName && functionName.indexOf('Object.') === 0) {
|
|
26
|
-
functionName = functionName.slice('Object.'.length);
|
|
27
|
-
}
|
|
28
|
-
if (
|
|
29
|
-
// Chrome has a bug with inferring function.name:
|
|
30
|
-
// https://github.com/facebook/create-react-app/issues/2097
|
|
31
|
-
// Let's ignore a meaningless name we get for top-level modules.
|
|
32
|
-
functionName === 'friendlySyntaxErrorLabel' ||
|
|
33
|
-
functionName === 'exports.__esModule' ||
|
|
34
|
-
functionName === '<anonymous>' ||
|
|
35
|
-
!functionName) {
|
|
36
|
-
functionName = null;
|
|
37
|
-
}
|
|
38
|
-
this.functionName = functionName;
|
|
39
|
-
this.fileName = fileName;
|
|
40
|
-
this.lineNumber = lineNumber;
|
|
41
|
-
this.columnNumber = columnNumber;
|
|
42
|
-
this._originalFunctionName = sourceFunctionName;
|
|
43
|
-
this._originalFileName = sourceFileName;
|
|
44
|
-
this._originalLineNumber = sourceLineNumber;
|
|
45
|
-
this._originalColumnNumber = sourceColumnNumber;
|
|
46
|
-
this._scriptCode = scriptCode;
|
|
47
|
-
this._originalScriptCode = sourceScriptCode;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Returns the name of this function.
|
|
51
|
-
*/
|
|
52
|
-
getFunctionName() {
|
|
53
|
-
return this.functionName || '(anonymous function)';
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Returns the source of the frame.
|
|
57
|
-
* This contains the file name, line number, and column number when available.
|
|
58
|
-
*/
|
|
59
|
-
getSource() {
|
|
60
|
-
let str = '';
|
|
61
|
-
if (this.fileName !== null) {
|
|
62
|
-
str += this.fileName + ':';
|
|
63
|
-
}
|
|
64
|
-
if (this.lineNumber !== null) {
|
|
65
|
-
str += this.lineNumber + ':';
|
|
66
|
-
}
|
|
67
|
-
if (this.columnNumber !== null) {
|
|
68
|
-
str += this.columnNumber + ':';
|
|
69
|
-
}
|
|
70
|
-
return str.slice(0, -1);
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Returns a pretty version of this stack frame.
|
|
74
|
-
*/
|
|
75
|
-
toString() {
|
|
76
|
-
const functionName = this.getFunctionName();
|
|
77
|
-
const source = this.getSource();
|
|
78
|
-
return `${functionName}${source ? ` (${source})` : ``}`;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
exports.StackFrame = StackFrame;
|
|
82
|
-
//# sourceMappingURL=stack-frame.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stack-frame.js","sourceRoot":"","sources":["../../../src/error-overlay/react-overlay/stack-frame.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,WAAW;AAEX,yCAAyC;AACzC,MAAM,UAAU;IAQf,YAAY,UAAkB,EAAE,OAAe,EAAE,SAAS,GAAG,KAAK;QACjE,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC5B,CAAC;CACD;AAED;;GAEG;AACH,MAAa,UAAU;IActB,sCAAsC;IACtC,YACC,eAA8B,IAAI,EAClC,WAA0B,IAAI,EAC9B,aAA4B,IAAI,EAChC,eAA8B,IAAI,EAClC,aAAkC,IAAI,EACtC,qBAAoC,IAAI,EACxC,iBAAgC,IAAI,EACpC,mBAAk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I,IAAI,CAAC,YAAY,KAAK,IAAI,EAAE;YAC/B,GAAG,IAAI,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC;SAC/B;QAED,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,QAAQ;QACP,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;QAC5C,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QAChC,OAAO,GAAG,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACzD,CAAC;CACD;AA9FD,gCA8FC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup-env-variables.d.ts","sourceRoot":"","sources":["../src/setup-env-variables.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup-env-variables.js","sourceRoot":"","sources":["../src/setup-env-variables.ts"],"names":[],"mappings":";;AAAA,uCAAmC;AAEnC,oBAAS,CAAC,iBAAiB,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"latest-remotion-version.d.ts","sourceRoot":"","sources":["../../src/test/latest-remotion-version.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const get_latest_remotion_version_1 = require("../get-latest-remotion-version");
|
|
4
|
-
test('Should be able to get a Remotion version', async () => {
|
|
5
|
-
expect(await (0, get_latest_remotion_version_1.getLatestRemotionVersion)()).toMatch(/(([0-9]+)\.([0-9]+)\.([0-9]+))/);
|
|
6
|
-
});
|
|
7
|
-
//# sourceMappingURL=latest-remotion-version.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"latest-remotion-version.js","sourceRoot":"","sources":["../../src/test/latest-remotion-version.ts"],"names":[],"mappings":";;AAAA,gFAAwE;AAExE,IAAI,CAAC,0CAA0C,EAAE,KAAK,IAAI,EAAE;IAC3D,MAAM,CAAC,MAAM,IAAA,sDAAwB,GAAE,CAAC,CAAC,OAAO,CAC/C,gCAAgC,CAChC,CAAC;AACH,CAAC,CAAC,CAAC"}
|