@remotion/bundler 3.0.22 → 3.0.25

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.
@@ -1,3 +1,3 @@
1
- import { BundleState } from 'remotion';
1
+ import type { BundleState } from 'remotion';
2
2
  export declare const setBundleMode: (state: BundleState) => void;
3
3
  export declare const getBundleMode: () => BundleState;
package/dist/bundle.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { WebpackOverrideFn } from 'remotion';
1
+ import type { WebpackOverrideFn } from 'remotion';
2
2
  export declare const bundle: (entryPoint: string, onProgressUpdate?: ((progress: number) => void) | undefined, options?: {
3
3
  webpackOverride?: WebpackOverrideFn;
4
4
  outDir?: string;
@@ -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;
@@ -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;
@@ -1,4 +1,4 @@
1
- import { transform, TransformOptions } from 'esbuild';
1
+ import type { transform, TransformOptions } from 'esbuild';
2
2
  declare type Implementation = {
3
3
  transform: typeof transform;
4
4
  };
@@ -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;
@@ -1,2 +1,2 @@
1
- import { BundleState } from 'remotion';
1
+ import type { BundleState } from 'remotion';
2
2
  export declare const setBundleModeAndUpdate: (state: BundleState) => void;
@@ -1,4 +1,4 @@
1
- import { WebpackConfiguration, WebpackOverrideFn } from 'remotion';
1
+ import type { WebpackConfiguration, WebpackOverrideFn } from 'remotion';
2
2
  export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgressUpdate, enableCaching, inputProps, envVariables, maxTimelineTracks, entryPoints, }: {
3
3
  entry: string;
4
4
  userDefinedComponent: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/bundler",
3
- "version": "3.0.22",
3
+ "version": "3.0.25",
4
4
  "description": "Bundler for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -26,7 +26,7 @@
26
26
  "css-loader": "5.2.7",
27
27
  "esbuild": "0.14.19",
28
28
  "react-refresh": "0.9.0",
29
- "remotion": "3.0.22",
29
+ "remotion": "3.0.25",
30
30
  "style-loader": "2.0.0",
31
31
  "webpack": "5.72.0"
32
32
  },
@@ -35,7 +35,7 @@
35
35
  "react-dom": ">=16.8.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@jonny/eslint-config": "3.0.259",
38
+ "@jonny/eslint-config": "3.0.266",
39
39
  "@types/node": "^16.7.5",
40
40
  "@types/react": "18.0.1",
41
41
  "@types/react-dom": "18.0.0",
@@ -63,5 +63,5 @@
63
63
  "publishConfig": {
64
64
  "access": "public"
65
65
  },
66
- "gitHead": "e79cfa299f58a26c84a637174875941898cdab97"
66
+ "gitHead": "27ec369ebe9cf3d063095383c1e30dc83c60f010"
67
67
  }