vite-plugin-css-injected-by-js
Advanced tools
Comparing version 3.1.1 to 3.1.2-beta.0
@@ -1,10 +0,4 @@ | ||
import type { ChunkMetadata } from 'vite'; | ||
import type { InjectCode, InjectCodeFunction } from './utils'; | ||
import type { OutputAsset, OutputChunk } from 'rollup'; | ||
import type { BuildOptions } from 'vite'; | ||
declare module 'rollup' { | ||
interface RenderedChunk { | ||
viteMetadata: ChunkMetadata; | ||
} | ||
} | ||
export interface BaseOptions { | ||
@@ -11,0 +5,0 @@ injectCode?: InjectCode; |
@@ -212,3 +212,3 @@ "use strict"; | ||
importedCssFileNames.forEach((importedCssFileName) => { | ||
if (!unusedCssAssets.includes(importedCssFileName)) { | ||
if (!unusedCssAssets.includes(importedCssFileName) && chunk.viteMetadata) { | ||
chunk.viteMetadata.importedCss = new Set(); | ||
@@ -215,0 +215,0 @@ } |
@@ -1,10 +0,4 @@ | ||
import type { ChunkMetadata } from 'vite'; | ||
import type { InjectCode, InjectCodeFunction } from './utils'; | ||
import type { OutputAsset, OutputChunk } from 'rollup'; | ||
import type { BuildOptions } from 'vite'; | ||
declare module 'rollup' { | ||
interface RenderedChunk { | ||
viteMetadata: ChunkMetadata; | ||
} | ||
} | ||
export interface BaseOptions { | ||
@@ -11,0 +5,0 @@ injectCode?: InjectCode; |
@@ -180,3 +180,3 @@ import { build } from 'vite'; | ||
importedCssFileNames.forEach((importedCssFileName) => { | ||
if (!unusedCssAssets.includes(importedCssFileName)) { | ||
if (!unusedCssAssets.includes(importedCssFileName) && chunk.viteMetadata) { | ||
chunk.viteMetadata.importedCss = new Set(); | ||
@@ -183,0 +183,0 @@ } |
{ | ||
"name": "vite-plugin-css-injected-by-js", | ||
"version": "3.1.1", | ||
"version": "3.1.2-beta.0", | ||
"description": "A Vite plugin that takes the CSS and adds it to the page through the JS. For those who want a single JS file.", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
48288
689
1