🎥 Make videos programmatically with React
esbuild exclude dependencies
Jonny Burgera7a18d53fd89
diff --git a/packages/bundler/package.json b/packages/bundler/package.jsonindex fc78631490..64e6b28a40 100644--- a/packages/bundler/package.json+++ b/packages/bundler/package.json@@ -24,7 +24,7 @@"license": "SEE LICENSE IN LICENSE.md","dependencies": {"css-loader": "5.2.7",- "esbuild": "0.15.13",+ "esbuild": "0.16.12","react-refresh": "0.9.0","remotion": "3.3.18","style-loader": "2.0.0",diff --git a/packages/cli/src/load-config.ts b/packages/cli/src/load-config.tsindex 7997726934..29a8ce3cd4 100644--- a/packages/cli/src/load-config.ts+++ b/packages/cli/src/load-config.ts@@ -33,16 +33,7 @@ export const loadConfigFile = async (tsconfig: isJavascript ? undefined : tsconfigJson,absWorkingDir: remotionRoot,outfile: out,- external: [- 'remotion',- // Dependencies of babel-loader that trigger a warning when used- 'react-refresh/babel',- '@babel/plugin-proposal-class-properties',- '@babel/preset-typescript',- '@babel/preset-react',- 'babel-loader',- '@babel/preset-env',- ],+ packages: 'external',});if (result.errors.length > 0) {Log.error('Error in remotion.config.ts file');diff --git a/packages/example/package.json b/packages/example/package.jsonindex 3a1b86c059..7bbc901114 100644--- a/packages/example/package.json+++ b/packages/example/package.json@@ -55,7 +55,8 @@"ts-unused-exports": "^7.0.1","typescript": "^4.7.0","use-asset": "^1.0.4",- "vitest": "0.24.3"+ "vitest": "0.24.3",+ "webpack": "5.74.0"},"devDependencies": {"@types/babel__core": "^7.1.12",diff --git a/packages/gif/package.json b/packages/gif/package.jsonindex 029798ac2e..d2f3f2ea65 100644--- a/packages/gif/package.json+++ b/packages/gif/package.json@@ -37,7 +37,7 @@"react-dom": "18.0.0","typescript": "^4.7.0","webpack": "5.74.0",- "esbuild": "0.15.13"+ "esbuild": "0.16.12"},"peerDependencies": {"react": ">=16.8.0",diff --git a/packages/player-example/package.json b/packages/player-example/package.jsonindex b4e8143ef7..cb30cb9dd0 100644--- a/packages/player-example/package.json+++ b/packages/player-example/package.json@@ -19,7 +19,7 @@"@types/react-dom": "18.0.0","browserslist": "^4.21.4","camelcase": "^6.2.1",- "esbuild": "0.15.13",+ "esbuild": "0.16.12","eslint": "^8.3.0","fs-extra": "^10.0.0","html-webpack-plugin": "^5.5.0",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 17de2cabaf..e1b889fdfe 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -60,7 +60,7 @@ importers:'@typescript-eslint/eslint-plugin': 5.18.0'@typescript-eslint/parser': 5.18.0css-loader: 5.2.7- esbuild: 0.15.13+ esbuild: 0.16.12eslint: 8.25.0eslint-plugin-10x: 1.5.2eslint-plugin-react: 7.29.4@@ -77,11 +77,11 @@ importers:webpack: 5.74.0dependencies:css-loader: [email protected]- esbuild: 0.15.13+ esbuild: 0.16.12react-refresh: 0.9.0remotion: link:../corestyle-loader: [email protected]- webpack: [email protected]+ webpack: [email protected]devDependencies:'@jonny/eslint-config': 3.0.266_t54va6jeo5lf3vtqih5uiyrm5e'@types/node': 16.10.2@@ -457,6 +457,7 @@ importers:typescript: ^4.7.0use-asset: ^1.0.4vitest: 0.24.3+ webpack: 5.74.0dependencies:'@babel/plugin-syntax-jsx': 7.12.13_@[email protected]'@babel/preset-env': 7.12.13_@[email protected]@@ -492,6 +493,7 @@ importers:typescript: 4.7.2use-asset: [email protected]vitest: 0.24.3+ webpack: 5.74.0devDependencies:'@types/babel__core': 7.1.16'@types/babel__template': 7.4.1@@ -509,7 +511,7 @@ importers:'@types/node': ^16.7.5'@types/react': 18.0.23'@types/react-dom': 18.0.0- esbuild: 0.15.13+ esbuild: 0.16.12eslint: 8.25.0gifuct-js: 2.1.2lru_map: 0.4.1@@ -529,14 +531,14 @@ importers:'@types/node': 16.10.2'@types/react': 18.0.23'@types/react-dom': 18.0.0- esbuild: 0.15.13+ esbuild: 0.16.12eslint: 8.25.0prettier: 2.6.2prettier-plugin-organize-imports: 2.3.4_lbsuufegg2dnc4wh6qgf26kgdyreact: 18.0.0react-dom: [email protected]typescript: 4.7.2- webpack: [email protected]+ webpack: [email protected]packages/google-fonts:specifiers:@@ -822,7 +824,7 @@ importers:'@types/react-dom': 18.0.0browserslist: ^4.21.4camelcase: ^6.2.1- esbuild: 0.15.13+ esbuild: 0.16.12eslint: ^8.3.0fs-extra: ^10.0.0html-webpack-plugin: ^5.5.0@@ -846,7 +848,7 @@ importers:'@types/react-dom': 18.0.0browserslist: 4.21.4camelcase: 6.3.0- esbuild: 0.15.13+ esbuild: 0.16.12eslint: 8.13.0fs-extra: 10.1.0html-webpack-plugin: [email protected]@@ -856,7 +858,7 @@ importers:react-refresh: 0.11.0remotion: link:../coretypescript: 4.7.2- webpack: [email protected]+ webpack: [email protected]webpack-dev-server: [email protected]packages/preload:@@ -2547,7 +2549,7 @@ packages:'@babel/compat-data': 7.15.0'@babel/core': 7.18.6'@babel/helper-validator-option': 7.14.5- browserslist: 4.17.3+ browserslist: 4.21.4semver: 6.3.0dev: false@@ -6560,22 +6562,182 @@ packages:resolution: {integrity: sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==}dev: false- /@esbuild/android-arm/0.15.13:- resolution: {integrity: sha512-RY2fVI8O0iFUNvZirXaQ1vMvK0xhCcl0gqRj74Z6yEiO1zAUa7hbsdwZM1kzqbxHK7LFyMizipfXT3JME+12Hw==}+ /@esbuild/android-arm/0.16.12:+ resolution: {integrity: sha512-CTWgMJtpCyCltrvipZrrcjjRu+rzm6pf9V8muCsJqtKujR3kPmU4ffbckvugNNaRmhxAF1ZI3J+0FUIFLFg8KA==}engines: {node: '>=12'}cpu: [arm]os: [android]requiresBuild: trueoptional: true- /@esbuild/linux-loong64/0.15.13:- resolution: {integrity: sha512-+BoyIm4I8uJmH/QDIH0fu7MG0AEx9OXEDXnqptXCwKOlOqZiS4iraH1Nr7/ObLMokW3sOCeBNyD68ATcV9b9Ag==}+ /@esbuild/android-arm64/0.16.12:+ resolution: {integrity: sha512-0LacmiIW+X0/LOLMZqYtZ7d4uY9fxYABAYhSSOu+OGQVBqH4N5eIYgkT7bBFnR4Nm3qo6qS3RpHKVrDASqj/uQ==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [android]+ requiresBuild: true+ optional: true++ /@esbuild/android-x64/0.16.12:+ resolution: {integrity: sha512-sS5CR3XBKQXYpSGMM28VuiUnbX83Z+aWPZzClW+OB2JquKqxoiwdqucJ5qvXS8pM6Up3RtJfDnRQZkz3en2z5g==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [android]+ requiresBuild: true+ optional: true++ /@esbuild/darwin-arm64/0.16.12:+ resolution: {integrity: sha512-Dpe5hOAQiQRH20YkFAg+wOpcd4PEuXud+aGgKBQa/VriPJA8zuVlgCOSTwna1CgYl05lf6o5els4dtuyk1qJxQ==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [darwin]+ requiresBuild: true+ optional: true++ /@esbuild/darwin-x64/0.16.12:+ resolution: {integrity: sha512-ApGRA6X5txIcxV0095X4e4KKv87HAEXfuDRcGTniDWUUN+qPia8sl/BqG/0IomytQWajnUn4C7TOwHduk/FXBQ==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [darwin]+ requiresBuild: true+ optional: true++ /@esbuild/freebsd-arm64/0.16.12:+ resolution: {integrity: sha512-AMdK2gA9EU83ccXCWS1B/KcWYZCj4P3vDofZZkl/F/sBv/fphi2oUqUTox/g5GMcIxk8CF1CVYTC82+iBSyiUg==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [freebsd]+ requiresBuild: true+ optional: true++ /@esbuild/freebsd-x64/0.16.12:+ resolution: {integrity: sha512-KUKB9w8G/xaAbD39t6gnRBuhQ8vIYYlxGT2I+mT6UGRnCGRr1+ePFIGBQmf5V16nxylgUuuWVW1zU2ktKkf6WQ==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [freebsd]+ requiresBuild: true+ optional: true++ /@esbuild/linux-arm/0.16.12:+ resolution: {integrity: sha512-vhDdIv6z4eL0FJyNVfdr3C/vdd/Wc6h1683GJsFoJzfKb92dU/v88FhWdigg0i6+3TsbSDeWbsPUXb4dif2abg==}+ engines: {node: '>=12'}+ cpu: [arm]+ os: [linux]+ requiresBuild: true+ optional: true++ /@esbuild/linux-arm64/0.16.12:+ resolution: {integrity: sha512-29HXMLpLklDfmw7T2buGqq3HImSUaZ1ArmrPOMaNiZZQptOSZs32SQtOHEl8xWX5vfdwZqrBfNf8Te4nArVzKQ==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [linux]+ requiresBuild: true+ optional: true++ /@esbuild/linux-ia32/0.16.12:+ resolution: {integrity: sha512-JFDuNDTTfgD1LJg7wHA42o2uAO/9VzHYK0leAVnCQE/FdMB599YMH73ux+nS0xGr79pv/BK+hrmdRin3iLgQjg==}+ engines: {node: '>=12'}+ cpu: [ia32]+ os: [linux]+ requiresBuild: true+ optional: true++ /@esbuild/linux-loong64/0.16.12:+ resolution: {integrity: sha512-xTGzVPqm6WKfCC0iuj1fryIWr1NWEM8DMhAIo+4rFgUtwy/lfHl+Obvus4oddzRDbBetLLmojfVZGmt/g/g+Rw==}engines: {node: '>=12'}cpu: [loong64]os: [linux]requiresBuild: trueoptional: true+ /@esbuild/linux-mips64el/0.16.12:+ resolution: {integrity: sha512-zI1cNgHa3Gol+vPYjIYHzKhU6qMyOQrvZ82REr5Fv7rlh5PG6SkkuCoH7IryPqR+BK2c/7oISGsvPJPGnO2bHQ==}+ engines: {node: '>=12'}+ cpu: [mips64el]+ os: [linux]+ requiresBuild: true+ optional: true++ /@esbuild/linux-ppc64/0.16.12:+ resolution: {integrity: sha512-/C8OFXExoMmvTDIOAM54AhtmmuDHKoedUd0Otpfw3+AuuVGemA1nQK99oN909uZbLEU6Bi+7JheFMG3xGfZluQ==}+ engines: {node: '>=12'}+ cpu: [ppc64]+ os: [linux]+ requiresBuild: true+ optional: true++ /@esbuild/linux-riscv64/0.16.12:+ resolution: {integrity: sha512-qeouyyc8kAGV6Ni6Isz8hUsKMr00EHgVwUKWNp1r4l88fHEoNTDB8mmestvykW6MrstoGI7g2EAsgr0nxmuGYg==}+ engines: {node: '>=12'}+ cpu: [riscv64]+ os: [linux]+ requiresBuild: true+ optional: true++ /@esbuild/linux-s390x/0.16.12:+ resolution: {integrity: sha512-s9AyI/5vz1U4NNqnacEGFElqwnHusWa81pskAf8JNDM2eb6b2E6PpBmT8RzeZv6/TxE6/TADn2g9bb0jOUmXwQ==}+ engines: {node: '>=12'}+ cpu: [s390x]+ os: [linux]+ requiresBuild: true+ optional: true++ /@esbuild/linux-x64/0.16.12:+ resolution: {integrity: sha512-e8YA7GQGLWhvakBecLptUiKxOk4E/EPtSckS1i0MGYctW8ouvNUoh7xnU15PGO2jz7BYl8q1R6g0gE5HFtzpqQ==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [linux]+ requiresBuild: true+ optional: true++ /@esbuild/netbsd-x64/0.16.12:+ resolution: {integrity: sha512-z2+kUxmOqBS+6SRVd57iOLIHE8oGOoEnGVAmwjm2aENSP35HPS+5cK+FL1l+rhrsJOFIPrNHqDUNechpuG96Sg==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [netbsd]+ requiresBuild: true+ optional: true++ /@esbuild/openbsd-x64/0.16.12:+ resolution: {integrity: sha512-PAonw4LqIybwn2/vJujhbg1N9W2W8lw9RtXIvvZoyzoA/4rA4CpiuahVbASmQohiytRsixbNoIOUSjRygKXpyA==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [openbsd]+ requiresBuild: true+ optional: true++ /@esbuild/sunos-x64/0.16.12:+ resolution: {integrity: sha512-+wr1tkt1RERi+Zi/iQtkzmMH4nS8+7UIRxjcyRz7lur84wCkAITT50Olq/HiT4JN2X2bjtlOV6vt7ptW5Gw60Q==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [sunos]+ requiresBuild: true+ optional: true++ /@esbuild/win32-arm64/0.16.12:+ resolution: {integrity: sha512-XEjeUSHmjsAOJk8+pXJu9pFY2O5KKQbHXZWQylJzQuIBeiGrpMeq9sTVrHefHxMOyxUgoKQTcaTS+VK/K5SviA==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [win32]+ requiresBuild: true+ optional: true++ /@esbuild/win32-ia32/0.16.12:+ resolution: {integrity: sha512-eRKPM7e0IecUAUYr2alW7JGDejrFJXmpjt4MlfonmQ5Rz9HWpKFGCjuuIRgKO7W9C/CWVFXdJ2GjddsBXqQI4A==}+ engines: {node: '>=12'}+ cpu: [ia32]+ os: [win32]+ requiresBuild: true+ optional: true++ /@esbuild/win32-x64/0.16.12:+ resolution: {integrity: sha512-iPYKN78t3op2+erv2frW568j1q0RpqX6JOLZ7oPPaAV1VaF7dDstOrNw37PVOYoTWE11pV4A1XUitpdEFNIsPg==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [win32]+ requiresBuild: true+ optional: true+/@eslint/eslintrc/1.2.1:resolution: {integrity: sha512-bxvbYnBPN1Gibwyp6NrpnFzA3YtRL3BBAyEAFVIpNTm2Rn4Vy87GA5M4aSn3InRrlsbX5N0GW7XIx+U4SAEKdQ==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -7716,7 +7878,7 @@ packages:react-refresh: 0.11.0schema-utils: 3.1.1source-map: 0.7.3- webpack: [email protected]+ webpack: [email protected]webpack-dev-server: [email protected]dev: false@@ -8366,7 +8528,7 @@ packages:resolution: {integrity: sha512-a6bTJ21vFOGIkwM0kzh9Yr89ziVxq4vYH2fQ6N8AeipEzai/cFK6aGMArIkUeIdRIgpwQa+2bXiLuUJCpSf2Cg==}dependencies:'@types/connect': 3.4.35- '@types/node': 18.0.3+ '@types/node': 18.11.2dev: false/@types/bonjour/3.5.10:@@ -8405,7 +8567,7 @@ packages:/@types/connect/3.4.35:resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==}dependencies:- '@types/node': 18.0.3+ '@types/node': 18.11.2dev: false/@types/css-font-loading-module/0.0.7:@@ -8430,7 +8592,7 @@ packages:/@types/express-serve-static-core/4.17.24:resolution: {integrity: sha512-3UJuW+Qxhzwjq3xhwXm2onQcFHn76frIYVbTu+kn24LFxI+dEhdfISDFovPB8VpEgW8oQCTpRuCe+0zJxB7NEA==}dependencies:- '@types/node': 18.0.3+ '@types/node': 18.11.2'@types/qs': 6.9.7'@types/range-parser': 1.2.4dev: false@@ -11153,7 +11315,7 @@ packages:postcss-value-parser: 4.1.0schema-utils: 3.1.1semver: 7.3.5- webpack: [email protected]+ webpack: [email protected]dev: false/css-loader/[email protected]:@@ -12576,14 +12738,34 @@ packages:esbuild-windows-64: 0.14.49esbuild-windows-arm64: 0.14.49- /esbuild/0.15.13:- resolution: {integrity: sha512-Cu3SC84oyzzhrK/YyN4iEVy2jZu5t2fz66HEOShHURcjSkOSAVL8C/gfUT+lDJxkVHpg8GZ10DD0rMHRPqMFaQ==}+ /esbuild/0.16.12:+ resolution: {integrity: sha512-eq5KcuXajf2OmivCl4e89AD3j8fbV+UTE9vczEzq5haA07U9oOTzBWlh3+6ZdjJR7Rz2QfWZ2uxZyhZxBgJ4+g==}engines: {node: '>=12'}hasBin: truerequiresBuild: trueoptionalDependencies:- '@esbuild/android-arm': 0.15.13- '@esbuild/linux-loong64': 0.15.13+ '@esbuild/android-arm': 0.16.12+ '@esbuild/android-arm64': 0.16.12+ '@esbuild/android-x64': 0.16.12+ '@esbuild/darwin-arm64': 0.16.12+ '@esbuild/darwin-x64': 0.16.12+ '@esbuild/freebsd-arm64': 0.16.12+ '@esbuild/freebsd-x64': 0.16.12+ '@esbuild/linux-arm': 0.16.12+ '@esbuild/linux-arm64': 0.16.12+ '@esbuild/linux-ia32': 0.16.12+ '@esbuild/linux-loong64': 0.16.12+ '@esbuild/linux-mips64el': 0.16.12+ '@esbuild/linux-ppc64': 0.16.12+ '@esbuild/linux-riscv64': 0.16.12+ '@esbuild/linux-s390x': 0.16.12+ '@esbuild/linux-x64': 0.16.12+ '@esbuild/netbsd-x64': 0.16.12+ '@esbuild/openbsd-x64': 0.16.12+ '@esbuild/sunos-x64': 0.16.12+ '@esbuild/win32-arm64': 0.16.12+ '@esbuild/win32-ia32': 0.16.12+ '@esbuild/win32-x64': 0.16.12esbuild-android-64: 0.15.13esbuild-android-arm64: 0.15.13esbuild-darwin-64: 0.15.13@@ -13402,7 +13584,7 @@ packages:semver: 7.3.5tapable: 1.1.3typescript: 4.7.2- webpack: [email protected]+ webpack: [email protected]dev: false/fork-ts-checker-webpack-plugin/6.5.1_v5dq5tvy5mxgxe2jcvr5h43l3u:@@ -14186,7 +14368,7 @@ packages:lodash: 4.17.21pretty-error: 4.0.0tapable: 2.2.1- webpack: [email protected]+ webpack: [email protected]dev: false/htmlparser2/6.1.0:@@ -15010,7 +15192,7 @@ packages:resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==}engines: {node: '>= 10.13.0'}dependencies:- '@types/node': 18.0.3+ '@types/node': 18.11.2merge-stream: 2.0.0supports-color: 8.1.1@@ -20246,7 +20428,7 @@ packages:dependencies:loader-utils: 2.0.2schema-utils: 3.1.1- webpack: [email protected]+ webpack: [email protected]dev: false/style-to-object/0.3.0:@@ -20433,7 +20615,7 @@ packages:dependencies:rimraf: 2.6.3- /terser-webpack-plugin/5.3.6_6pyxixs7etwi43ixt5ayqk6jm4:+ /terser-webpack-plugin/5.3.6_a7bsei4app5fvzhcyjgautqju4:resolution: {integrity: sha512-kfLFk+PoLUQIbLmB1+PZDMRSZS99Mp+/MHqDNmMA6tOItzRt+Npe3E+fsMs5mfcM0wCtrrdU387UnV+vnSffXQ==}engines: {node: '>= 10.13.0'}peerDependencies:@@ -20450,12 +20632,12 @@ packages:optional: truedependencies:'@jridgewell/trace-mapping': 0.3.15- esbuild: 0.15.13+ esbuild: 0.16.12jest-worker: 27.5.1schema-utils: 3.1.1serialize-javascript: 6.0.0terser: 5.15.0- webpack: [email protected]+ webpack: [email protected]/terser-webpack-plugin/5.3.6_kyeof2p4lofxc5k62ta223yg7i:resolution: {integrity: sha512-kfLFk+PoLUQIbLmB1+PZDMRSZS99Mp+/MHqDNmMA6tOItzRt+Npe3E+fsMs5mfcM0wCtrrdU387UnV+vnSffXQ==}@@ -21792,7 +21974,7 @@ packages:mime-types: 2.1.34range-parser: 1.2.1schema-utils: 4.0.0- webpack: [email protected]+ webpack: [email protected]dev: false/webpack-dev-server/[email protected]:@@ -21881,7 +22063,7 @@ packages:serve-index: 1.9.1sockjs: 0.3.21spdy: 4.0.2- webpack: [email protected]+ webpack: [email protected]webpack-dev-middleware: [email protected]ws: 8.5.0transitivePeerDependencies:@@ -21982,7 +22164,7 @@ packages:- uglify-jsdev: false- /webpack/[email protected]:+ /webpack/[email protected]:resolution: {integrity: sha512-A2InDwnhhGN4LYctJj6M1JEaGL7Luj6LOmyBHjcI8529cm5p6VXiTIW2sn6ffvEAKmveLzvu4jrihwXtPojlAA==}engines: {node: '>=10.13.0'}hasBin: true@@ -22013,7 +22195,7 @@ packages:neo-async: 2.6.2schema-utils: 3.1.1tapable: 2.2.1- terser-webpack-plugin: 5.3.6_6pyxixs7etwi43ixt5ayqk6jm4+ terser-webpack-plugin: 5.3.6_a7bsei4app5fvzhcyjgautqju4watchpack: 2.4.0webpack-sources: 3.2.3transitivePeerDependencies: