@vanilla-extract/integration
Advanced tools
Comparing version 0.0.0-vite-plugin-new-20231228035644 to 0.0.0-vite-plugin-new-20231228080614
@@ -75,4 +75,2 @@ 'use strict'; | ||
let _$1 = t => t, | ||
_t$1; | ||
const originalNodeEnv = process.env.NODE_ENV; | ||
@@ -229,7 +227,7 @@ function stringifyFileScope({ | ||
} | ||
throw new Error(outdent__default["default"](_t$1 || (_t$1 = _$1` | ||
throw new Error(outdent__default["default"]` | ||
Invalid exports. | ||
You can only export plain objects, arrays, strings, numbers and null/undefined. | ||
`))); | ||
`); | ||
}, 0, { | ||
@@ -352,7 +350,2 @@ references: true, | ||
let _ = t => t, | ||
_t, | ||
_t2, | ||
_t3; | ||
// Inlined from @rollup/pluginutils | ||
@@ -378,15 +371,15 @@ // https://github.com/rollup/plugins/blob/33174f956304ab4aad4bbaba656f627c31679dc5/packages/pluginutils/src/normalizePath.ts#L5-L7 | ||
if (hasESM && !isMixed) { | ||
source = outdent__default["default"](_t || (_t = _` | ||
source = outdent__default["default"]` | ||
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope"; | ||
setFileScope("${0}", "${0}"); | ||
${0} | ||
setFileScope("${normalizedPath}", "${packageName}"); | ||
${source} | ||
endFileScope(); | ||
`), normalizedPath, packageName, source); | ||
`; | ||
} else { | ||
source = outdent__default["default"](_t2 || (_t2 = _` | ||
source = outdent__default["default"]` | ||
const __vanilla_filescope__ = require("@vanilla-extract/css/fileScope"); | ||
__vanilla_filescope__.setFileScope("${0}", "${0}"); | ||
${0} | ||
__vanilla_filescope__.setFileScope("${normalizedPath}", "${packageName}"); | ||
${source} | ||
__vanilla_filescope__.endFileScope(); | ||
`), normalizedPath, packageName, source); | ||
`; | ||
} | ||
@@ -396,8 +389,8 @@ } | ||
const adapterImport = hasESM && !isMixed ? 'import * as __vanilla_css_adapter__ from "@vanilla-extract/css/adapter";' : 'const __vanilla_css_adapter__ = require("@vanilla-extract/css/adapter");'; | ||
source = outdent__default["default"](_t3 || (_t3 = _` | ||
${0} | ||
__vanilla_css_adapter__.setAdapter(${0}); | ||
${0} | ||
source = outdent__default["default"]` | ||
${adapterImport} | ||
__vanilla_css_adapter__.setAdapter(${globalAdapterIdentifier}); | ||
${source} | ||
__vanilla_css_adapter__.removeAdapter(); | ||
`), adapterImport, globalAdapterIdentifier, source); | ||
`; | ||
} | ||
@@ -691,10 +684,10 @@ return source; | ||
root, | ||
identifiers: _identifiers = 'debug', | ||
cssImportSpecifier: _cssImportSpecifier = filePath => filePath + '.vanilla.css', | ||
vitePlugins: _vitePlugins = [] | ||
identifiers = 'debug', | ||
cssImportSpecifier = filePath => filePath + '.vanilla.css', | ||
vitePlugins = [] | ||
}) => { | ||
const vitePromise = createViteServer({ | ||
root, | ||
identifiers: _identifiers, | ||
vitePlugins: _vitePlugins | ||
identifiers, | ||
vitePlugins | ||
}); | ||
@@ -727,3 +720,3 @@ const processVanillaFileCache = new Map(); | ||
const cssAdapter = { | ||
getIdentOption: () => _identifiers, | ||
getIdentOption: () => identifiers, | ||
onBeginFileScope: fileScope => { | ||
@@ -814,3 +807,3 @@ // Before evaluating a file, reset the cache for it | ||
if (cssObjs || cachedCss?.css) { | ||
cssImports.push(`import '${_cssImportSpecifier(cssDepModuleId)}';`); | ||
cssImports.push(`import '${cssImportSpecifier(cssDepModuleId)}';`); | ||
} | ||
@@ -817,0 +810,0 @@ } |
@@ -75,4 +75,2 @@ 'use strict'; | ||
let _$1 = t => t, | ||
_t$1; | ||
const originalNodeEnv = "production"; | ||
@@ -229,7 +227,7 @@ function stringifyFileScope({ | ||
} | ||
throw new Error(outdent__default["default"](_t$1 || (_t$1 = _$1` | ||
throw new Error(outdent__default["default"]` | ||
Invalid exports. | ||
You can only export plain objects, arrays, strings, numbers and null/undefined. | ||
`))); | ||
`); | ||
}, 0, { | ||
@@ -352,7 +350,2 @@ references: true, | ||
let _ = t => t, | ||
_t, | ||
_t2, | ||
_t3; | ||
// Inlined from @rollup/pluginutils | ||
@@ -378,15 +371,15 @@ // https://github.com/rollup/plugins/blob/33174f956304ab4aad4bbaba656f627c31679dc5/packages/pluginutils/src/normalizePath.ts#L5-L7 | ||
if (hasESM && !isMixed) { | ||
source = outdent__default["default"](_t || (_t = _` | ||
source = outdent__default["default"]` | ||
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope"; | ||
setFileScope("${0}", "${0}"); | ||
${0} | ||
setFileScope("${normalizedPath}", "${packageName}"); | ||
${source} | ||
endFileScope(); | ||
`), normalizedPath, packageName, source); | ||
`; | ||
} else { | ||
source = outdent__default["default"](_t2 || (_t2 = _` | ||
source = outdent__default["default"]` | ||
const __vanilla_filescope__ = require("@vanilla-extract/css/fileScope"); | ||
__vanilla_filescope__.setFileScope("${0}", "${0}"); | ||
${0} | ||
__vanilla_filescope__.setFileScope("${normalizedPath}", "${packageName}"); | ||
${source} | ||
__vanilla_filescope__.endFileScope(); | ||
`), normalizedPath, packageName, source); | ||
`; | ||
} | ||
@@ -396,8 +389,8 @@ } | ||
const adapterImport = hasESM && !isMixed ? 'import * as __vanilla_css_adapter__ from "@vanilla-extract/css/adapter";' : 'const __vanilla_css_adapter__ = require("@vanilla-extract/css/adapter");'; | ||
source = outdent__default["default"](_t3 || (_t3 = _` | ||
${0} | ||
__vanilla_css_adapter__.setAdapter(${0}); | ||
${0} | ||
source = outdent__default["default"]` | ||
${adapterImport} | ||
__vanilla_css_adapter__.setAdapter(${globalAdapterIdentifier}); | ||
${source} | ||
__vanilla_css_adapter__.removeAdapter(); | ||
`), adapterImport, globalAdapterIdentifier, source); | ||
`; | ||
} | ||
@@ -691,10 +684,10 @@ return source; | ||
root, | ||
identifiers: _identifiers = 'debug', | ||
cssImportSpecifier: _cssImportSpecifier = filePath => filePath + '.vanilla.css', | ||
vitePlugins: _vitePlugins = [] | ||
identifiers = 'debug', | ||
cssImportSpecifier = filePath => filePath + '.vanilla.css', | ||
vitePlugins = [] | ||
}) => { | ||
const vitePromise = createViteServer({ | ||
root, | ||
identifiers: _identifiers, | ||
vitePlugins: _vitePlugins | ||
identifiers, | ||
vitePlugins | ||
}); | ||
@@ -727,3 +720,3 @@ const processVanillaFileCache = new Map(); | ||
const cssAdapter = { | ||
getIdentOption: () => _identifiers, | ||
getIdentOption: () => identifiers, | ||
onBeginFileScope: fileScope => { | ||
@@ -814,3 +807,3 @@ // Before evaluating a file, reset the cache for it | ||
if (cssObjs || cachedCss?.css) { | ||
cssImports.push(`import '${_cssImportSpecifier(cssDepModuleId)}';`); | ||
cssImports.push(`import '${cssImportSpecifier(cssDepModuleId)}';`); | ||
} | ||
@@ -817,0 +810,0 @@ } |
{ | ||
"name": "@vanilla-extract/integration", | ||
"version": "0.0.0-vite-plugin-new-20231228035644", | ||
"version": "0.0.0-vite-plugin-new-20231228080614", | ||
"description": "Zero-runtime Stylesheets-in-TypeScript", | ||
@@ -19,4 +19,4 @@ "main": "dist/vanilla-extract-integration.cjs.js", | ||
"@babel/plugin-syntax-typescript": "^7.20.0", | ||
"@vanilla-extract/babel-plugin-debug-ids": "^1.0.2", | ||
"@vanilla-extract/css": "^1.14.0", | ||
"@vanilla-extract/babel-plugin-debug-ids": "0.0.0-vite-plugin-new-20231228080614", | ||
"@vanilla-extract/css": "0.0.0-vite-plugin-new-20231228080614", | ||
"esbuild": "0.17.6", | ||
@@ -29,9 +29,17 @@ "eval": "0.1.8", | ||
"outdent": "^0.8.0", | ||
"vite": "^5.0.10", | ||
"vite-node": "^1.1.0" | ||
}, | ||
"peerDependencies": { | ||
"vite": ">=4.0.3" | ||
}, | ||
"peerDependenciesMeta": { | ||
"vite": { | ||
"optional": true | ||
} | ||
}, | ||
"devDependencies": { | ||
"@types/babel__core": "^7.1.20", | ||
"@types/lodash": "^4.14.168" | ||
"@types/lodash": "^4.14.168", | ||
"vite": "npm:vite@^5.0.10" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62747
3
1764
+ Added@esbuild/aix-ppc64@0.24.0(transitive)
+ Added@esbuild/android-arm@0.24.0(transitive)
+ Added@esbuild/android-arm64@0.24.0(transitive)
+ Added@esbuild/android-x64@0.24.0(transitive)
+ Added@esbuild/darwin-arm64@0.24.0(transitive)
+ Added@esbuild/darwin-x64@0.24.0(transitive)
+ Added@esbuild/freebsd-arm64@0.24.0(transitive)
+ Added@esbuild/freebsd-x64@0.24.0(transitive)
+ Added@esbuild/linux-arm@0.24.0(transitive)
+ Added@esbuild/linux-arm64@0.24.0(transitive)
+ Added@esbuild/linux-ia32@0.24.0(transitive)
+ Added@esbuild/linux-loong64@0.24.0(transitive)
+ Added@esbuild/linux-mips64el@0.24.0(transitive)
+ Added@esbuild/linux-ppc64@0.24.0(transitive)
+ Added@esbuild/linux-riscv64@0.24.0(transitive)
+ Added@esbuild/linux-s390x@0.24.0(transitive)
+ Added@esbuild/linux-x64@0.24.0(transitive)
+ Added@esbuild/netbsd-x64@0.24.0(transitive)
+ Added@esbuild/openbsd-arm64@0.24.0(transitive)
+ Added@esbuild/openbsd-x64@0.24.0(transitive)
+ Added@esbuild/sunos-x64@0.24.0(transitive)
+ Added@esbuild/win32-arm64@0.24.0(transitive)
+ Added@esbuild/win32-ia32@0.24.0(transitive)
+ Added@esbuild/win32-x64@0.24.0(transitive)
+ Added@vanilla-extract/babel-plugin-debug-ids@0.0.0-vite-plugin-new-20231228080614(transitive)
+ Added@vanilla-extract/css@0.0.0-vite-plugin-new-20231228080614(transitive)
+ Added@vanilla-extract/private@0.0.0-vite-plugin-new-20231228080614(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedesbuild@0.24.0(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedsupports-color@7.2.0(transitive)
+ Addedvite@6.0.3(transitive)
- Removedvite@^5.0.10
- Removed@vanilla-extract/babel-plugin-debug-ids@1.1.0(transitive)
- Removed@vanilla-extract/css@1.16.1(transitive)
- Removed@vanilla-extract/private@1.0.6(transitive)
- Removeddedent@1.5.3(transitive)
- Removedlru-cache@10.4.3(transitive)
Updated@vanilla-extract/babel-plugin-debug-ids@0.0.0-vite-plugin-new-20231228080614
Updated@vanilla-extract/css@0.0.0-vite-plugin-new-20231228080614