tailwindcss 0.0.0-oxide-insiders.a3b91a1 → 0.0.0-oxide-insiders.cc1eec6
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/lib/lib/sharedState.js +6 -1
- package/lib/util/normalizeConfig.js +0 -14
- package/lib/util/validateConfig.js +11 -0
- package/package.json +2 -2
- package/src/lib/sharedState.js +15 -6
- package/src/util/applyImportantSelector.js +0 -1
- package/src/util/normalizeConfig.js +0 -17
- package/src/util/validateConfig.js +13 -0
package/lib/lib/sharedState.js
CHANGED
|
@@ -25,11 +25,16 @@ function _interopRequireDefault(obj) {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
let OXIDE_DEFAULT_ENABLED = _packageJson.default.tailwindcss.engine === "oxide";
|
|
28
|
-
const env = {
|
|
28
|
+
const env = typeof process !== "undefined" ? {
|
|
29
29
|
NODE_ENV: process.env.NODE_ENV,
|
|
30
30
|
DEBUG: resolveDebug(process.env.DEBUG),
|
|
31
31
|
ENGINE: _packageJson.default.tailwindcss.engine,
|
|
32
32
|
OXIDE: resolveBoolean(process.env.OXIDE, OXIDE_DEFAULT_ENABLED)
|
|
33
|
+
} : {
|
|
34
|
+
NODE_ENV: "production",
|
|
35
|
+
DEBUG: false,
|
|
36
|
+
ENGINE: _packageJson.default.tailwindcss.engine,
|
|
37
|
+
OXIDE: OXIDE_DEFAULT_ENABLED
|
|
33
38
|
};
|
|
34
39
|
const contextMap = new Map();
|
|
35
40
|
const configContextMap = new Map();
|
|
@@ -276,19 +276,5 @@ function normalizeConfig(config) {
|
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
// Warn if the line-clamp plugin is installed
|
|
280
|
-
if (config.plugins.length > 0) {
|
|
281
|
-
let plugin;
|
|
282
|
-
try {
|
|
283
|
-
plugin = require("@tailwindcss/line-clamp");
|
|
284
|
-
} catch {}
|
|
285
|
-
if (plugin && config.plugins.includes(plugin)) {
|
|
286
|
-
_log.default.warn("line-clamp-in-core", [
|
|
287
|
-
"As of Tailwind CSS v3.3, the `@tailwindcss/line-clamp` plugin is now included by default.",
|
|
288
|
-
"Remove it from the `plugins` array in your configuration to eliminate this warning."
|
|
289
|
-
]);
|
|
290
|
-
config.plugins = config.plugins.filter((p)=>p !== plugin);
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
279
|
return config;
|
|
294
280
|
}
|
|
@@ -20,5 +20,16 @@ function validateConfig(config) {
|
|
|
20
20
|
"https://tailwindcss.com/docs/content-configuration"
|
|
21
21
|
]);
|
|
22
22
|
}
|
|
23
|
+
// Warn if the line-clamp plugin is installed
|
|
24
|
+
try {
|
|
25
|
+
let plugin = require("@tailwindcss/line-clamp");
|
|
26
|
+
if (config.plugins.includes(plugin)) {
|
|
27
|
+
_log.default.warn("line-clamp-in-core", [
|
|
28
|
+
"As of Tailwind CSS v3.3, the `@tailwindcss/line-clamp` plugin is now included by default.",
|
|
29
|
+
"Remove it from the `plugins` array in your configuration to eliminate this warning."
|
|
30
|
+
]);
|
|
31
|
+
config.plugins = config.plugins.filter((p)=>p !== plugin);
|
|
32
|
+
}
|
|
33
|
+
} catch {}
|
|
23
34
|
return config;
|
|
24
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tailwindcss",
|
|
3
|
-
"version": "0.0.0-oxide-insiders.
|
|
3
|
+
"version": "0.0.0-oxide-insiders.cc1eec6",
|
|
4
4
|
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"postcss": "^8.0.9"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@tailwindcss/oxide": "0.0.0-oxide-insiders.
|
|
73
|
+
"@tailwindcss/oxide": "0.0.0-oxide-insiders.cc1eec6",
|
|
74
74
|
"arg": "^5.0.2",
|
|
75
75
|
"browserslist": "^4.21.5",
|
|
76
76
|
"chokidar": "^3.5.3",
|
package/src/lib/sharedState.js
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import pkg from '../../package.json'
|
|
2
2
|
let OXIDE_DEFAULT_ENABLED = pkg.tailwindcss.engine === 'oxide'
|
|
3
3
|
|
|
4
|
-
export const env =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
export const env =
|
|
5
|
+
typeof process !== 'undefined'
|
|
6
|
+
? {
|
|
7
|
+
NODE_ENV: process.env.NODE_ENV,
|
|
8
|
+
DEBUG: resolveDebug(process.env.DEBUG),
|
|
9
|
+
ENGINE: pkg.tailwindcss.engine,
|
|
10
|
+
OXIDE: resolveBoolean(process.env.OXIDE, OXIDE_DEFAULT_ENABLED),
|
|
11
|
+
}
|
|
12
|
+
: {
|
|
13
|
+
NODE_ENV: 'production',
|
|
14
|
+
DEBUG: false,
|
|
15
|
+
ENGINE: pkg.tailwindcss.engine,
|
|
16
|
+
OXIDE: OXIDE_DEFAULT_ENABLED,
|
|
17
|
+
}
|
|
18
|
+
|
|
10
19
|
export const contextMap = new Map()
|
|
11
20
|
export const configContextMap = new Map()
|
|
12
21
|
export const contextSourcesMap = new Map()
|
|
@@ -297,22 +297,5 @@ export function normalizeConfig(config) {
|
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
// Warn if the line-clamp plugin is installed
|
|
301
|
-
if (config.plugins.length > 0) {
|
|
302
|
-
let plugin
|
|
303
|
-
try {
|
|
304
|
-
plugin = require('@tailwindcss/line-clamp')
|
|
305
|
-
} catch {}
|
|
306
|
-
|
|
307
|
-
if (plugin && config.plugins.includes(plugin)) {
|
|
308
|
-
log.warn('line-clamp-in-core', [
|
|
309
|
-
'As of Tailwind CSS v3.3, the `@tailwindcss/line-clamp` plugin is now included by default.',
|
|
310
|
-
'Remove it from the `plugins` array in your configuration to eliminate this warning.',
|
|
311
|
-
])
|
|
312
|
-
|
|
313
|
-
config.plugins = config.plugins.filter((p) => p !== plugin)
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
|
|
317
300
|
return config
|
|
318
301
|
}
|
|
@@ -9,5 +9,18 @@ export function validateConfig(config) {
|
|
|
9
9
|
])
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
// Warn if the line-clamp plugin is installed
|
|
13
|
+
try {
|
|
14
|
+
let plugin = require('@tailwindcss/line-clamp')
|
|
15
|
+
if (config.plugins.includes(plugin)) {
|
|
16
|
+
log.warn('line-clamp-in-core', [
|
|
17
|
+
'As of Tailwind CSS v3.3, the `@tailwindcss/line-clamp` plugin is now included by default.',
|
|
18
|
+
'Remove it from the `plugins` array in your configuration to eliminate this warning.',
|
|
19
|
+
])
|
|
20
|
+
|
|
21
|
+
config.plugins = config.plugins.filter((p) => p !== plugin)
|
|
22
|
+
}
|
|
23
|
+
} catch {}
|
|
24
|
+
|
|
12
25
|
return config
|
|
13
26
|
}
|