@vanilla-extract/rollup-plugin
Advanced tools
Comparing version 0.0.0-vite-plugin-new-20231220084042 to 0.0.0-vite-plugin-new-20231226032342
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9
13871
306