@remotion/bundler 4.0.176 → 4.0.178

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/README.md ADDED
@@ -0,0 +1,18 @@
1
+ # @remotion/bundler
2
+
3
+ Bundle Remotion compositions using Webpack
4
+
5
+ [![NPM Downloads](https://img.shields.io/npm/dm/@remotion/bundler.svg?style=flat&color=black&label=Downloads)](https://npmcharts.com/compare/@remotion/bundler?minimal=true)
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @remotion/bundler --save-exact
11
+ ```
12
+
13
+ When installing a Remotion package, make sure to align the version of all `remotion` and `@remotion/*` packages to the same version.
14
+ Remove the `^` character from the version number to use the exact version.
15
+
16
+ ## Usage
17
+
18
+ See the [documentation](https://www.remotion.dev/docs/bundler) for more information.
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const vitest_1 = require("vitest");
3
+ const bun_test_1 = require("bun:test");
4
4
  const bundle_1 = require("../bundle");
5
- (0, vitest_1.test)('Should reject bad bundle options', () => {
5
+ (0, bun_test_1.test)('Should reject bad bundle options', () => {
6
6
  // @ts-expect-error
7
- (0, vitest_1.expect)(() => (0, bundle_1.bundle)()).rejects.toThrow(/bundle\(\) was called without arguments/);
7
+ (0, bun_test_1.expect)(() => (0, bundle_1.bundle)()).toThrow(/bundle\(\) was called without arguments/);
8
8
  // @ts-expect-error
9
- (0, vitest_1.expect)(() => (0, bundle_1.bundle)({})).rejects.toThrow(/bundle\(\) was called without the `entryPoint` option/);
9
+ (0, bun_test_1.expect)(() => (0, bundle_1.bundle)({})).toThrow(/bundle\(\) was called without the `entryPoint` option/);
10
10
  });
@@ -3,19 +3,19 @@ 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
+ const bun_test_1 = require("bun:test");
6
7
  const node_path_1 = __importDefault(require("node:path"));
7
- const vitest_1 = require("vitest");
8
8
  const validate_public_dir_1 = require("../validate-public-dir");
9
- (0, vitest_1.describe)('validatePublicDir()', () => {
10
- (0, vitest_1.test)('Should not allow root directory as public dir.', () => {
11
- (0, vitest_1.expect)(() => (0, validate_public_dir_1.validatePublicDir)(node_path_1.default.parse(process.cwd()).root)).toThrow(/which is the root directory. This is not allowed./);
9
+ (0, bun_test_1.describe)('validatePublicDir()', () => {
10
+ (0, bun_test_1.test)('Should not allow root directory as public dir.', () => {
11
+ (0, bun_test_1.expect)(() => (0, validate_public_dir_1.validatePublicDir)(node_path_1.default.parse(process.cwd()).root)).toThrow(/which is the root directory. This is not allowed./);
12
12
  });
13
- (0, vitest_1.test)('Should not allow a path where the parent directory does not exist', () => {
13
+ (0, bun_test_1.test)('Should not allow a path where the parent directory does not exist', () => {
14
14
  const pathToPass = process.platform === 'win32' ? 'C:\\foo\\bar' : '/foo/bar';
15
15
  const expectedParent = process.platform === 'win32' ? 'C:\\foo' : '/foo';
16
- (0, vitest_1.expect)(() => (0, validate_public_dir_1.validatePublicDir)(pathToPass)).toThrow(`The public directory was specified as "${pathToPass}", but this folder does not exist and the parent directory "${expectedParent}" does also not exist.`);
16
+ (0, bun_test_1.expect)(() => (0, validate_public_dir_1.validatePublicDir)(pathToPass)).toThrow(`The public directory was specified as "${pathToPass}", but this folder does not exist and the parent directory "${expectedParent}" does also not exist.`);
17
17
  });
18
- (0, vitest_1.test)('Should allow /foo as a path since that directory can be created', () => {
19
- (0, vitest_1.expect)(() => (0, validate_public_dir_1.validatePublicDir)(process.platform === 'win32' ? 'C:\\foo' : '/foo')).not.toThrow();
18
+ (0, bun_test_1.test)('Should allow /foo as a path since that directory can be created', () => {
19
+ (0, bun_test_1.expect)(() => (0, validate_public_dir_1.validatePublicDir)(process.platform === 'win32' ? 'C:\\foo' : '/foo')).not.toThrow();
20
20
  });
21
21
  });
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const bun_test_1 = require("bun:test");
3
4
  const fs_1 = require("fs");
4
5
  const path_1 = require("path");
5
- const vitest_1 = require("vitest");
6
- (0, vitest_1.test)('Warrant the hack we have in loader.ts ', () => {
6
+ (0, bun_test_1.test)('Warrant the hack we have in loader.ts ', () => {
7
7
  const path = (0, path_1.join)(process.cwd(), 'dist', 'fast-refresh', 'loader.js');
8
8
  const contents = (0, fs_1.readFileSync)(path, 'utf-8');
9
- (0, vitest_1.expect)(contents).toContain('var _a, _b');
9
+ (0, bun_test_1.expect)(contents).toContain('var _a, _b');
10
10
  });
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
+ "repository": {
3
+ "url": "https://github.com/remotion-dev/remotion/tree/main/packages/bundler"
4
+ },
2
5
  "name": "@remotion/bundler",
3
- "version": "4.0.176",
4
- "description": "Bundler for Remotion",
6
+ "version": "4.0.178",
7
+ "description": "Bundle Remotion compositions using Webpack",
5
8
  "main": "dist/index.js",
6
9
  "sideEffects": false,
7
- "repository": {
8
- "url": "https://github.com/remotion-dev/remotion"
9
- },
10
10
  "bugs": {
11
11
  "url": "https://github.com/remotion-dev/remotion/issues"
12
12
  },
@@ -25,28 +25,17 @@
25
25
  "style-loader": "2.0.0",
26
26
  "source-map": "0.7.3",
27
27
  "webpack": "5.83.1",
28
- "remotion": "4.0.176",
29
- "@remotion/studio-shared": "4.0.176",
30
- "@remotion/studio": "4.0.176"
28
+ "remotion": "4.0.178",
29
+ "@remotion/studio": "4.0.178",
30
+ "@remotion/studio-shared": "4.0.178"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": ">=16.8.0",
34
34
  "react-dom": ">=16.8.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@jonny/eslint-config": "3.0.281",
38
- "@types/node": "18.14.6",
39
- "@types/react": "18.3.1",
40
- "@types/react-dom": "18.3.0",
41
- "eslint": "8.56.0",
42
- "eslint-plugin-10x": "1.5.2",
43
- "eslint-plugin-react": "7.32.2",
44
- "eslint-plugin-react-hooks": "4.4.0",
45
- "prettier": "3.2.5",
46
- "prettier-plugin-organize-imports": "3.2.4",
47
37
  "react": "18.3.1",
48
- "react-dom": "18.3.1",
49
- "vitest": "0.31.1"
38
+ "react-dom": "18.3.1"
50
39
  },
51
40
  "keywords": [
52
41
  "remotion",
@@ -59,9 +48,10 @@
59
48
  "publishConfig": {
60
49
  "access": "public"
61
50
  },
51
+ "homepage": "https://www.remotion.dev/docs/bundler",
62
52
  "scripts": {
63
53
  "formatting": "prettier src --check",
64
54
  "lint": "eslint src --ext ts,tsx",
65
- "test": "vitest --run"
55
+ "test": "bun test src"
66
56
  }
67
57
  }