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-inline-prototype-202342012537 to 0.0.0-proxy-pr-1252-20240125041511

dist/vanilla-extract-vite-plugin.cjs.d.ts.map

37

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

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

var path = require('path');
var vite = require('vite');
var outdent = require('outdent');

@@ -13,20 +12,2 @@ var integration = require('@vanilla-extract/integration');

function _interopNamespace(e) {
if (e && e.__esModule) return e;
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
if (k !== 'default') {
var d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: true,
get: function () { return e[k]; }
});
}
});
}
n["default"] = e;
return Object.freeze(n);
}
var path__default = /*#__PURE__*/_interopDefault(path);

@@ -54,6 +35,5 @@ var outdent__default = /*#__PURE__*/_interopDefault(outdent);

const searchPath = typeof inlineOptions === 'string' ? inlineOptions : config.root;
const postCssConfig = await (await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('postcss-load-config')); })).default({}, searchPath);
const postCssConfig = await (await import('postcss-load-config')).default({}, searchPath);
return {
options: postCssConfig.options,
// @ts-expect-error - The postcssrc options don't agree with real postcss, but it should be ok
plugins: postCssConfig.plugins

@@ -81,2 +61,4 @@ };

let postCssConfig;
// We lazily load this utility from Vite
let normalizePath;
const cssMap = new Map();

@@ -86,3 +68,3 @@ const hasEmitCssOverride = typeof emitCssInSsr === 'boolean';

let packageName;
const getAbsoluteVirtualFileId = source => vite.normalizePath(path__default["default"].join(config.root, source));
const getAbsoluteVirtualFileId = source => normalizePath(path__default["default"].join(config.root, source));
return {

@@ -108,6 +90,7 @@ name: 'vanilla-extract',

packageName = integration.getPackageInfo(config.root).name;
normalizePath = (await import('vite')).normalizePath;
if (config.command === 'serve') {
postCssConfig = await resolvePostcssConfig(config);
}
if (!hasEmitCssOverride && config.plugins.some(plugin => ['astro:build', 'solid-start-server', 'vite-plugin-qwik', 'vite-plugin-svelte'].includes(plugin.name))) {
if (!hasEmitCssOverride && config.plugins.some(plugin => ['astro:build', 'remix', 'solid-start-server', 'vite-plugin-qwik', 'vite-plugin-svelte'].includes(plugin.name))) {
resolvedEmitCssInSsr = true;

@@ -180,3 +163,3 @@ }

source: code,
filePath: vite.normalizePath(validId),
filePath: normalizePath(validId),
rootPath: config.root,

@@ -199,3 +182,3 @@ packageName,

// If it's a `build --watch`, it needs to watch everything.
if (config.command === 'build' || file !== validId) {
if (config.command === 'build' || normalizePath(file) !== validId) {
this.addWatchFile(file);

@@ -216,3 +199,3 @@ }

if (postCssConfig) {
const postCssResult = await (await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('postcss')); })).default(postCssConfig.plugins).process(source, {
const postCssResult = await (await import('postcss')).default(postCssConfig.plugins).process(source, {
...postCssConfig.options,

@@ -224,3 +207,3 @@ from: undefined,

}
if (server && cssMap.has(absoluteId) && cssMap.get(absoluteId) !== source) {
if (server && cssMap.has(absoluteId) && cssMap.get(absoluteId) !== cssSource) {
const {

@@ -227,0 +210,0 @@ moduleGraph

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

var path = require('path');
var vite = require('vite');
var outdent = require('outdent');

@@ -13,20 +12,2 @@ var integration = require('@vanilla-extract/integration');

function _interopNamespace(e) {
if (e && e.__esModule) return e;
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
if (k !== 'default') {
var d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: true,
get: function () { return e[k]; }
});
}
});
}
n["default"] = e;
return Object.freeze(n);
}
var path__default = /*#__PURE__*/_interopDefault(path);

@@ -54,6 +35,5 @@ var outdent__default = /*#__PURE__*/_interopDefault(outdent);

const searchPath = typeof inlineOptions === 'string' ? inlineOptions : config.root;
const postCssConfig = await (await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('postcss-load-config')); })).default({}, searchPath);
const postCssConfig = await (await import('postcss-load-config')).default({}, searchPath);
return {
options: postCssConfig.options,
// @ts-expect-error - The postcssrc options don't agree with real postcss, but it should be ok
plugins: postCssConfig.plugins

@@ -81,2 +61,4 @@ };

let postCssConfig;
// We lazily load this utility from Vite
let normalizePath;
const cssMap = new Map();

@@ -86,3 +68,3 @@ const hasEmitCssOverride = typeof emitCssInSsr === 'boolean';

let packageName;
const getAbsoluteVirtualFileId = source => vite.normalizePath(path__default["default"].join(config.root, source));
const getAbsoluteVirtualFileId = source => normalizePath(path__default["default"].join(config.root, source));
return {

@@ -108,6 +90,7 @@ name: 'vanilla-extract',

packageName = integration.getPackageInfo(config.root).name;
normalizePath = (await import('vite')).normalizePath;
if (config.command === 'serve') {
postCssConfig = await resolvePostcssConfig(config);
}
if (!hasEmitCssOverride && config.plugins.some(plugin => ['astro:build', 'solid-start-server', 'vite-plugin-qwik', 'vite-plugin-svelte'].includes(plugin.name))) {
if (!hasEmitCssOverride && config.plugins.some(plugin => ['astro:build', 'remix', 'solid-start-server', 'vite-plugin-qwik', 'vite-plugin-svelte'].includes(plugin.name))) {
resolvedEmitCssInSsr = true;

@@ -180,3 +163,3 @@ }

source: code,
filePath: vite.normalizePath(validId),
filePath: normalizePath(validId),
rootPath: config.root,

@@ -199,3 +182,3 @@ packageName,

// If it's a `build --watch`, it needs to watch everything.
if (config.command === 'build' || file !== validId) {
if (config.command === 'build' || normalizePath(file) !== validId) {
this.addWatchFile(file);

@@ -216,3 +199,3 @@ }

if (postCssConfig) {
const postCssResult = await (await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('postcss')); })).default(postCssConfig.plugins).process(source, {
const postCssResult = await (await import('postcss')).default(postCssConfig.plugins).process(source, {
...postCssConfig.options,

@@ -224,3 +207,3 @@ from: undefined,

}
if (server && cssMap.has(absoluteId) && cssMap.get(absoluteId) !== source) {
if (server && cssMap.has(absoluteId) && cssMap.get(absoluteId) !== cssSource) {
const {

@@ -227,0 +210,0 @@ moduleGraph

import path from 'path';
import { normalizePath } from 'vite';
import outdent from 'outdent';

@@ -28,3 +27,2 @@ import { getPackageInfo, cssFileFilter, transform, compile, processVanillaFile } from '@vanilla-extract/integration';

options: postCssConfig.options,
// @ts-expect-error - The postcssrc options don't agree with real postcss, but it should be ok
plugins: postCssConfig.plugins

@@ -52,2 +50,4 @@ };

let postCssConfig;
// We lazily load this utility from Vite
let normalizePath;
const cssMap = new Map();

@@ -78,6 +78,7 @@ const hasEmitCssOverride = typeof emitCssInSsr === 'boolean';

packageName = getPackageInfo(config.root).name;
normalizePath = (await import('vite')).normalizePath;
if (config.command === 'serve') {
postCssConfig = await resolvePostcssConfig(config);
}
if (!hasEmitCssOverride && config.plugins.some(plugin => ['astro:build', 'solid-start-server', 'vite-plugin-qwik', 'vite-plugin-svelte'].includes(plugin.name))) {
if (!hasEmitCssOverride && config.plugins.some(plugin => ['astro:build', 'remix', 'solid-start-server', 'vite-plugin-qwik', 'vite-plugin-svelte'].includes(plugin.name))) {
resolvedEmitCssInSsr = true;

@@ -168,3 +169,3 @@ }

// If it's a `build --watch`, it needs to watch everything.
if (config.command === 'build' || file !== validId) {
if (config.command === 'build' || normalizePath(file) !== validId) {
this.addWatchFile(file);

@@ -192,3 +193,3 @@ }

}
if (server && cssMap.has(absoluteId) && cssMap.get(absoluteId) !== source) {
if (server && cssMap.has(absoluteId) && cssMap.get(absoluteId) !== cssSource) {
const {

@@ -195,0 +196,0 @@ moduleGraph

{
"name": "@vanilla-extract/vite-plugin",
"version": "0.0.0-inline-prototype-202342012537",
"version": "0.0.0-proxy-pr-1252-20240125041511",
"description": "Zero-runtime Stylesheets-in-TypeScript",

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

"dependencies": {
"@vanilla-extract/integration": "^0.0.0-inline-prototype-202342012537",
"@vanilla-extract/integration": "0.0.0-proxy-pr-1252-20240125041511",
"outdent": "^0.8.0",
"postcss": "^8.3.6",
"postcss-load-config": "^3.1.0"
"postcss-load-config": "^4.0.1"
},

@@ -28,4 +28,4 @@ "devDependencies": {

"peerDependencies": {
"vite": "^2.2.3 || ^3.0.0 || ^4.0.3"
"vite": "^2.2.3 || ^3.0.0 || ^4.0.3 || ^5.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