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

vite-plugin-css-injected-by-js

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-css-injected-by-js - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2-beta.0

6

dist/cjs/declarations/interface.d.ts

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

2

dist/cjs/utils.js

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

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