@remotion/tailwind-v4 4.0.506 → 4.0.508
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/cjs/enable.js +18 -2
- package/dist/esm/index.mjs +10 -0
- package/package.json +4 -4
package/dist/cjs/enable.js
CHANGED
|
@@ -1,18 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.enableTailwind = void 0;
|
|
4
|
+
const remotionConfigFiles = ['**/remotion.config.ts', '**/remotion.config.js'];
|
|
4
5
|
/**
|
|
5
6
|
* @description A function that modifies the default bundler configuration to make the necessary changes to support Tailwind.
|
|
6
7
|
* @see [Documentation](https://www.remotion.dev/docs/tailwind-v4/enable-tailwind)
|
|
7
8
|
*/
|
|
8
9
|
const enableTailwind = (currentConfiguration) => {
|
|
9
|
-
var _a;
|
|
10
|
+
var _a, _b;
|
|
11
|
+
const currentIgnored = (_a = currentConfiguration.watchOptions) === null || _a === void 0 ? void 0 : _a.ignored;
|
|
12
|
+
const ignored = currentIgnored instanceof RegExp
|
|
13
|
+
? new RegExp(`(?:${currentIgnored.source})|(?:[/\\\\]remotion\\.config\\.(?:js|ts)$)`, currentIgnored.flags)
|
|
14
|
+
: [
|
|
15
|
+
...(Array.isArray(currentIgnored)
|
|
16
|
+
? currentIgnored
|
|
17
|
+
: currentIgnored
|
|
18
|
+
? [currentIgnored]
|
|
19
|
+
: []),
|
|
20
|
+
...remotionConfigFiles,
|
|
21
|
+
];
|
|
10
22
|
return {
|
|
11
23
|
...currentConfiguration,
|
|
24
|
+
watchOptions: {
|
|
25
|
+
...currentConfiguration.watchOptions,
|
|
26
|
+
ignored,
|
|
27
|
+
},
|
|
12
28
|
module: {
|
|
13
29
|
...currentConfiguration.module,
|
|
14
30
|
rules: [
|
|
15
|
-
...(((
|
|
31
|
+
...(((_b = currentConfiguration.module) === null || _b === void 0 ? void 0 : _b.rules)
|
|
16
32
|
? currentConfiguration.module.rules
|
|
17
33
|
: []).filter((rule) => {
|
|
18
34
|
var _a;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -2,9 +2,19 @@ import { createRequire } from "node:module";
|
|
|
2
2
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
3
3
|
|
|
4
4
|
// src/enable.ts
|
|
5
|
+
var remotionConfigFiles = ["**/remotion.config.ts", "**/remotion.config.js"];
|
|
5
6
|
var enableTailwind = (currentConfiguration) => {
|
|
7
|
+
const currentIgnored = currentConfiguration.watchOptions?.ignored;
|
|
8
|
+
const ignored = currentIgnored instanceof RegExp ? new RegExp(`(?:${currentIgnored.source})|(?:[/\\\\]remotion\\.config\\.(?:js|ts)$)`, currentIgnored.flags) : [
|
|
9
|
+
...Array.isArray(currentIgnored) ? currentIgnored : currentIgnored ? [currentIgnored] : [],
|
|
10
|
+
...remotionConfigFiles
|
|
11
|
+
];
|
|
6
12
|
return {
|
|
7
13
|
...currentConfiguration,
|
|
14
|
+
watchOptions: {
|
|
15
|
+
...currentConfiguration.watchOptions,
|
|
16
|
+
ignored
|
|
17
|
+
},
|
|
8
18
|
module: {
|
|
9
19
|
...currentConfiguration.module,
|
|
10
20
|
rules: [
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/tailwind-v4"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/tailwind-v4",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.508",
|
|
7
7
|
"description": "Enable TailwindCSS support in Remotion (TailwindCSS v4)",
|
|
8
8
|
"main": "dist/cjs/index.js",
|
|
9
9
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"@tailwindcss/webpack": "4.2.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@remotion/bundler": "4.0.
|
|
28
|
+
"@remotion/bundler": "4.0.508"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@remotion/bundler": "4.0.
|
|
32
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
31
|
+
"@remotion/bundler": "4.0.508",
|
|
32
|
+
"@remotion/eslint-config-internal": "4.0.508",
|
|
33
33
|
"eslint": "9.19.0",
|
|
34
34
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
35
35
|
},
|