Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vanilla-extract/integration

Package Overview
Dependencies
Maintainers
4
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vanilla-extract/integration - npm Package Compare versions

Comparing version 0.0.0-vite-plugin-new-20231228035644 to 0.0.0-vite-plugin-new-20231228080614

51

dist/vanilla-extract-integration.cjs.dev.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc