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 0.0.0-vite-plugin-new-20240115025310 to 0.0.0-vite-plugin-new-20240115050437

12

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

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

if (mode !== 'transform') {
var _config$inlineConfig$;
compiler = integration.createCompiler({

@@ -82,3 +83,3 @@ root: config.root,

cssImportSpecifier: fileIdToVirtualId,
vitePlugins: config.inlineConfig.plugins?.flat()
vitePlugins: (_config$inlineConfig$ = config.inlineConfig.plugins) === null || _config$inlineConfig$ === void 0 ? void 0 : _config$inlineConfig$.flat()
// Prevent an infinite loop where the compiler creates a new instance of the plugin, which creates a new compiler etc.

@@ -90,3 +91,4 @@ .filter(plugin => typeof plugin === 'object' && plugin !== null && 'name' in plugin && plugin.name !== 'vanilla-extract')

buildEnd() {
compiler?.close();
var _compiler;
(_compiler = compiler) === null || _compiler === void 0 ? void 0 : _compiler.close();
},

@@ -129,10 +131,10 @@ async transform(code, id) {

resolveId(source) {
var _compiler2;
const [validId, query] = source.split('?');
if (!isVirtualId(validId)) return;
const absoluteId = getAbsoluteId(validId);
if (
// We should always have CSS for a file here.
if ( // We should always have CSS for a file here.
// The only valid scenario for a missing one is if someone had written
// a file in their app using the .vanilla.js/.vanilla.css extension
compiler?.getCssForFile(virtualIdToFileId(absoluteId))) {
(_compiler2 = compiler) !== null && _compiler2 !== void 0 && _compiler2.getCssForFile(virtualIdToFileId(absoluteId))) {
// Keep the original query string for HMR.

@@ -139,0 +141,0 @@ return absoluteId + (query ? `?${query}` : '');

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

if (mode !== 'transform') {
var _config$inlineConfig$;
compiler = integration.createCompiler({

@@ -82,3 +83,3 @@ root: config.root,

cssImportSpecifier: fileIdToVirtualId,
vitePlugins: config.inlineConfig.plugins?.flat()
vitePlugins: (_config$inlineConfig$ = config.inlineConfig.plugins) === null || _config$inlineConfig$ === void 0 ? void 0 : _config$inlineConfig$.flat()
// Prevent an infinite loop where the compiler creates a new instance of the plugin, which creates a new compiler etc.

@@ -90,3 +91,4 @@ .filter(plugin => typeof plugin === 'object' && plugin !== null && 'name' in plugin && plugin.name !== 'vanilla-extract')

buildEnd() {
compiler?.close();
var _compiler;
(_compiler = compiler) === null || _compiler === void 0 ? void 0 : _compiler.close();
},

@@ -129,10 +131,10 @@ async transform(code, id) {

resolveId(source) {
var _compiler2;
const [validId, query] = source.split('?');
if (!isVirtualId(validId)) return;
const absoluteId = getAbsoluteId(validId);
if (
// We should always have CSS for a file here.
if ( // We should always have CSS for a file here.
// The only valid scenario for a missing one is if someone had written
// a file in their app using the .vanilla.js/.vanilla.css extension
compiler?.getCssForFile(virtualIdToFileId(absoluteId))) {
(_compiler2 = compiler) !== null && _compiler2 !== void 0 && _compiler2.getCssForFile(virtualIdToFileId(absoluteId))) {
// Keep the original query string for HMR.

@@ -139,0 +141,0 @@ return absoluteId + (query ? `?${query}` : '');

@@ -69,2 +69,3 @@ import path from 'path';

if (mode !== 'transform') {
var _config$inlineConfig$;
compiler = createCompiler({

@@ -74,3 +75,3 @@ root: config.root,

cssImportSpecifier: fileIdToVirtualId,
vitePlugins: config.inlineConfig.plugins?.flat()
vitePlugins: (_config$inlineConfig$ = config.inlineConfig.plugins) === null || _config$inlineConfig$ === void 0 ? void 0 : _config$inlineConfig$.flat()
// Prevent an infinite loop where the compiler creates a new instance of the plugin, which creates a new compiler etc.

@@ -82,3 +83,4 @@ .filter(plugin => typeof plugin === 'object' && plugin !== null && 'name' in plugin && plugin.name !== 'vanilla-extract')

buildEnd() {
compiler?.close();
var _compiler;
(_compiler = compiler) === null || _compiler === void 0 ? void 0 : _compiler.close();
},

@@ -121,10 +123,10 @@ async transform(code, id) {

resolveId(source) {
var _compiler2;
const [validId, query] = source.split('?');
if (!isVirtualId(validId)) return;
const absoluteId = getAbsoluteId(validId);
if (
// We should always have CSS for a file here.
if ( // We should always have CSS for a file here.
// The only valid scenario for a missing one is if someone had written
// a file in their app using the .vanilla.js/.vanilla.css extension
compiler?.getCssForFile(virtualIdToFileId(absoluteId))) {
(_compiler2 = compiler) !== null && _compiler2 !== void 0 && _compiler2.getCssForFile(virtualIdToFileId(absoluteId))) {
// Keep the original query string for HMR.

@@ -131,0 +133,0 @@ return absoluteId + (query ? `?${query}` : '');

{
"name": "@vanilla-extract/vite-plugin",
"version": "0.0.0-vite-plugin-new-20240115025310",
"version": "0.0.0-vite-plugin-new-20240115050437",
"description": "Zero-runtime Stylesheets-in-TypeScript",

@@ -18,3 +18,3 @@ "main": "dist/vanilla-extract-vite-plugin.cjs.js",

"dependencies": {
"@vanilla-extract/integration": "0.0.0-vite-plugin-new-20240115025310"
"@vanilla-extract/integration": "0.0.0-vite-plugin-new-20240115050437"
},

@@ -21,0 +21,0 @@ "devDependencies": {

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