tailwindcss 0.0.0-oxide-insiders.377bac2 → 0.0.0-oxide-insiders.5b078d9
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/cli/build/plugin.js +20 -20
- package/lib/lib/sharedState.js +18 -1
- package/lib/oxide/cli/build/plugin.js +20 -20
- package/package.json +17 -20
- package/peers/index.js +71 -141
- package/scripts/swap-engines.js +40 -0
- package/src/cli/build/plugin.js +1 -1
- package/src/lib/sharedState.js +17 -1
- package/src/oxide/cli/build/plugin.ts +1 -1
- package/CHANGELOG.md +0 -2364
- package/lib/cli/shared.js +0 -13
- package/lib/oxide/cli/shared.js +0 -12
- package/oxide-node-api-shim/index.js +0 -21
- package/oxide-node-api-shim/package.json +0 -5
- package/scripts/install-integrations.js +0 -27
- package/scripts/rebuildFixtures.js +0 -68
- package/src/cli/shared.js +0 -6
- package/src/oxide/cli/shared.ts +0 -4
package/src/lib/sharedState.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import pkg from '../../package.json'
|
|
2
|
+
let OXIDE_DEFAULT_ENABLED = pkg.tailwindcss.engine === 'oxide'
|
|
3
|
+
|
|
1
4
|
export const env = {
|
|
2
5
|
NODE_ENV: process.env.NODE_ENV,
|
|
3
6
|
DEBUG: resolveDebug(process.env.DEBUG),
|
|
4
|
-
|
|
7
|
+
ENGINE: pkg.tailwindcss.engine,
|
|
8
|
+
OXIDE: resolveBoolean(process.env.OXIDE, OXIDE_DEFAULT_ENABLED),
|
|
5
9
|
}
|
|
6
10
|
export const contextMap = new Map()
|
|
7
11
|
export const configContextMap = new Map()
|
|
@@ -11,6 +15,18 @@ export const NOT_ON_DEMAND = new String('*')
|
|
|
11
15
|
|
|
12
16
|
export const NONE = Symbol('__NONE__')
|
|
13
17
|
|
|
18
|
+
function resolveBoolean(value, defaultValue) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return defaultValue
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if (value === '0' || value === 'false') {
|
|
24
|
+
return false
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return true
|
|
28
|
+
}
|
|
29
|
+
|
|
14
30
|
export function resolveDebug(debug) {
|
|
15
31
|
if (debug === undefined) {
|
|
16
32
|
return false
|
|
@@ -8,7 +8,7 @@ import loadOptions from 'postcss-load-config/src/options' // Little bit scary, l
|
|
|
8
8
|
import tailwind from '../../../processTailwindFeatures'
|
|
9
9
|
import { loadPostcss, loadPostcssImport, lightningcss } from './deps'
|
|
10
10
|
import { formatNodes, drainStdin, outputFile } from './utils'
|
|
11
|
-
import { env } from '
|
|
11
|
+
import { env } from '../../../lib/sharedState'
|
|
12
12
|
import resolveConfig from '../../../../resolveConfig'
|
|
13
13
|
import getModuleDependencies from '../../../lib/getModuleDependencies'
|
|
14
14
|
import { parseCandidateFiles } from '../../../lib/content'
|