New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vanilla-extract/vite-plugin

Package Overview
Dependencies
Maintainers
4
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vanilla-extract/vite-plugin - npm Package Compare versions

Comparing version 5.0.0-vite-plugin-filter-20250129023708 to 5.0.0-vite-plugin-filter-20250130020334

21

dist/vanilla-extract-vite-plugin.cjs.dev.js

@@ -6,2 +6,3 @@ 'use strict';

var path = require('path');
var compiler = require('@vanilla-extract/compiler');
var integration = require('@vanilla-extract/integration');

@@ -41,3 +42,3 @@

let packageName;
let compiler;
let compiler$1;
const vitePromise = import('vite');

@@ -92,3 +93,3 @@ const getIdentOption = () => identifiers ?? (config.mode === 'production' ? 'short' : 'debug');

// Ensure we re-use the compiler instance between builds, e.g. in watch mode
if (mode !== 'transform' && !compiler) {
if (mode !== 'transform' && !compiler$1) {
var _configForViteCompile;

@@ -120,3 +121,3 @@ const {

};
compiler = integration.createCompiler({
compiler$1 = compiler.createCompiler({
root: config.root,

@@ -134,3 +135,3 @@ identifiers: getIdentOption(),

var _compiler;
(_compiler = compiler) === null || _compiler === void 0 || _compiler.close();
(_compiler = compiler$1) === null || _compiler === void 0 || _compiler.close();
}

@@ -140,3 +141,3 @@ },

var _compiler2;
return (_compiler2 = compiler) === null || _compiler2 === void 0 ? void 0 : _compiler2.close();
return (_compiler2 = compiler$1) === null || _compiler2 === void 0 ? void 0 : _compiler2.close();
},

@@ -158,3 +159,3 @@ async transform(code, id) {

}
if (compiler) {
if (compiler$1) {
const absoluteId = getAbsoluteId(validId);

@@ -164,3 +165,3 @@ const {

watchFiles
} = await compiler.processVanillaFile(absoluteId, {
} = await compiler$1.processVanillaFile(absoluteId, {
outputCss: true

@@ -202,3 +203,3 @@ });

// a file in their app using the .vanilla.js/.vanilla.css extension
(_compiler3 = compiler) !== null && _compiler3 !== void 0 && _compiler3.getCssForFile(virtualIdToFileId(absoluteId))) {
(_compiler3 = compiler$1) !== null && _compiler3 !== void 0 && _compiler3.getCssForFile(virtualIdToFileId(absoluteId))) {
// Keep the original query string for HMR.

@@ -210,7 +211,7 @@ return absoluteId + (query ? `?${query}` : '');

const [validId] = id.split('?');
if (!isVirtualId(validId) || !compiler) return;
if (!isVirtualId(validId) || !compiler$1) return;
const absoluteId = getAbsoluteId(validId);
const {
css
} = compiler.getCssForFile(virtualIdToFileId(absoluteId));
} = compiler$1.getCssForFile(virtualIdToFileId(absoluteId));
return css;

@@ -217,0 +218,0 @@ }

@@ -6,2 +6,3 @@ 'use strict';

var path = require('path');
var compiler = require('@vanilla-extract/compiler');
var integration = require('@vanilla-extract/integration');

@@ -41,3 +42,3 @@

let packageName;
let compiler;
let compiler$1;
const vitePromise = import('vite');

@@ -92,3 +93,3 @@ const getIdentOption = () => identifiers ?? (config.mode === 'production' ? 'short' : 'debug');

// Ensure we re-use the compiler instance between builds, e.g. in watch mode
if (mode !== 'transform' && !compiler) {
if (mode !== 'transform' && !compiler$1) {
var _configForViteCompile;

@@ -120,3 +121,3 @@ const {

};
compiler = integration.createCompiler({
compiler$1 = compiler.createCompiler({
root: config.root,

@@ -134,3 +135,3 @@ identifiers: getIdentOption(),

var _compiler;
(_compiler = compiler) === null || _compiler === void 0 || _compiler.close();
(_compiler = compiler$1) === null || _compiler === void 0 || _compiler.close();
}

@@ -140,3 +141,3 @@ },

var _compiler2;
return (_compiler2 = compiler) === null || _compiler2 === void 0 ? void 0 : _compiler2.close();
return (_compiler2 = compiler$1) === null || _compiler2 === void 0 ? void 0 : _compiler2.close();
},

@@ -158,3 +159,3 @@ async transform(code, id) {

}
if (compiler) {
if (compiler$1) {
const absoluteId = getAbsoluteId(validId);

@@ -164,3 +165,3 @@ const {

watchFiles
} = await compiler.processVanillaFile(absoluteId, {
} = await compiler$1.processVanillaFile(absoluteId, {
outputCss: true

@@ -202,3 +203,3 @@ });

// a file in their app using the .vanilla.js/.vanilla.css extension
(_compiler3 = compiler) !== null && _compiler3 !== void 0 && _compiler3.getCssForFile(virtualIdToFileId(absoluteId))) {
(_compiler3 = compiler$1) !== null && _compiler3 !== void 0 && _compiler3.getCssForFile(virtualIdToFileId(absoluteId))) {
// Keep the original query string for HMR.

@@ -210,7 +211,7 @@ return absoluteId + (query ? `?${query}` : '');

const [validId] = id.split('?');
if (!isVirtualId(validId) || !compiler) return;
if (!isVirtualId(validId) || !compiler$1) return;
const absoluteId = getAbsoluteId(validId);
const {
css
} = compiler.getCssForFile(virtualIdToFileId(absoluteId));
} = compiler$1.getCssForFile(virtualIdToFileId(absoluteId));
return css;

@@ -217,0 +218,0 @@ }

import path from 'path';
import { getPackageInfo, createCompiler, cssFileFilter, transform, normalizePath } from '@vanilla-extract/integration';
import { createCompiler } from '@vanilla-extract/compiler';
import { getPackageInfo, cssFileFilter, transform, normalizePath } from '@vanilla-extract/integration';

@@ -4,0 +5,0 @@ const PLUGIN_NAME = 'vite-plugin-vanilla-extract';

{
"name": "@vanilla-extract/vite-plugin",
"version": "5.0.0-vite-plugin-filter-20250129023708",
"version": "5.0.0-vite-plugin-filter-20250130020334",
"description": "Zero-runtime Stylesheets-in-TypeScript",

@@ -19,10 +19,11 @@ "main": "dist/vanilla-extract-vite-plugin.cjs.js",

"dependencies": {
"@vanilla-extract/integration": "^7.1.13-vite-plugin-filter-20250129023708"
"@vanilla-extract/compiler": "^0.1.1-vite-plugin-filter-20250130020334",
"@vanilla-extract/integration": "^8.0.0"
},
"devDependencies": {
"vite": "^5.0.11"
"vite": "^5.0.0 || ^6.0.0"
},
"peerDependencies": {
"vite": "^4.0.3 || ^5.0.0"
"vite": "^5.0.0 || ^6.0.0"
}
}
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