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

@vanilla-extract/rollup-plugin

Package Overview
Dependencies
Maintainers
4
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.0.0-vite-plugin-new-20231220084042 to 0.0.0-vite-plugin-new-20231226032342

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

9

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

@@ -28,3 +28,3 @@ 'use strict';

const filePath = index === -1 ? id : id.substring(0, index);
const identOption = identifiers !== null && identifiers !== void 0 ? identifiers : isProduction ? 'short' : 'debug';
const identOption = identifiers ?? (isProduction ? 'short' : 'debug');
const {

@@ -85,10 +85,9 @@ source,

renderChunk(code, chunkInfo) {
var _chunkInfo$map;
const chunkPath = dirname(chunkInfo.fileName);
const output = chunkInfo.imports.reduce((codeResult, importPath) => {
const moduleInfo = this.getModuleInfo(importPath);
if (!(moduleInfo !== null && moduleInfo !== void 0 && moduleInfo.meta.assetId)) {
if (!moduleInfo?.meta.assetId) {
return codeResult;
}
const assetPath = this.getFileName(moduleInfo === null || moduleInfo === void 0 ? void 0 : moduleInfo.meta.assetId);
const assetPath = this.getFileName(moduleInfo?.meta.assetId);
const relativeAssetPath = `./${normalize(relative(chunkPath, assetPath))}`;

@@ -99,3 +98,3 @@ return codeResult.replace(importPath, relativeAssetPath);

code: output,
map: (_chunkInfo$map = chunkInfo.map) !== null && _chunkInfo$map !== void 0 ? _chunkInfo$map : null
map: chunkInfo.map ?? null
};

@@ -102,0 +101,0 @@ }

@@ -27,3 +27,3 @@ 'use strict';

const filePath = index === -1 ? id : id.substring(0, index);
const identOption = identifiers !== null && identifiers !== void 0 ? identifiers : 'short' ;
const identOption = identifiers ?? ('short' );
const {

@@ -84,10 +84,9 @@ source,

renderChunk(code, chunkInfo) {
var _chunkInfo$map;
const chunkPath = dirname(chunkInfo.fileName);
const output = chunkInfo.imports.reduce((codeResult, importPath) => {
const moduleInfo = this.getModuleInfo(importPath);
if (!(moduleInfo !== null && moduleInfo !== void 0 && moduleInfo.meta.assetId)) {
if (!moduleInfo?.meta.assetId) {
return codeResult;
}
const assetPath = this.getFileName(moduleInfo === null || moduleInfo === void 0 ? void 0 : moduleInfo.meta.assetId);
const assetPath = this.getFileName(moduleInfo?.meta.assetId);
const relativeAssetPath = `./${normalize(relative(chunkPath, assetPath))}`;

@@ -98,3 +97,3 @@ return codeResult.replace(importPath, relativeAssetPath);

code: output,
map: (_chunkInfo$map = chunkInfo.map) !== null && _chunkInfo$map !== void 0 ? _chunkInfo$map : null
map: chunkInfo.map ?? null
};

@@ -101,0 +100,0 @@ }

@@ -24,3 +24,3 @@ import { cssFileFilter, compile, processVanillaFile, virtualCssFileFilter, getSourceFromVirtualCssFile } from '@vanilla-extract/integration';

const filePath = index === -1 ? id : id.substring(0, index);
const identOption = identifiers !== null && identifiers !== void 0 ? identifiers : isProduction ? 'short' : 'debug';
const identOption = identifiers ?? (isProduction ? 'short' : 'debug');
const {

@@ -81,10 +81,9 @@ source,

renderChunk(code, chunkInfo) {
var _chunkInfo$map;
const chunkPath = dirname(chunkInfo.fileName);
const output = chunkInfo.imports.reduce((codeResult, importPath) => {
const moduleInfo = this.getModuleInfo(importPath);
if (!(moduleInfo !== null && moduleInfo !== void 0 && moduleInfo.meta.assetId)) {
if (!moduleInfo?.meta.assetId) {
return codeResult;
}
const assetPath = this.getFileName(moduleInfo === null || moduleInfo === void 0 ? void 0 : moduleInfo.meta.assetId);
const assetPath = this.getFileName(moduleInfo?.meta.assetId);
const relativeAssetPath = `./${normalize(relative(chunkPath, assetPath))}`;

@@ -95,3 +94,3 @@ return codeResult.replace(importPath, relativeAssetPath);

code: output,
map: (_chunkInfo$map = chunkInfo.map) !== null && _chunkInfo$map !== void 0 ? _chunkInfo$map : null
map: chunkInfo.map ?? null
};

@@ -98,0 +97,0 @@ }

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

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

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

@@ -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