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.5.0 to 3.5.1

3

dist/cjs/index.js

@@ -75,2 +75,5 @@ "use strict";

else {
const allCssAssets = Object.keys(bundle).filter((i) => bundle[i].type == 'asset' &&
bundle[i].fileName.endsWith('.css'));
unusedCssAssets = allCssAssets.filter(cssAsset => !cssAssets.includes(cssAsset));
yield (0, utils_js_1.globalCssInjection)(bundle, cssAssets, buildCssCode, jsAssetsFilterFunction, topExecutionPriorityFlag);

@@ -77,0 +80,0 @@ }

@@ -63,2 +63,5 @@ import { buildCSSInjectionCode, buildJsCssMap, clearImportedCssViteMetadataFromBundle, globalCssInjection, isCSSRequest, relativeCssInjection, removeLinkStyleSheets, resolveInjectionCode, warnLog, } from './utils.js';

else {
const allCssAssets = Object.keys(bundle).filter((i) => bundle[i].type == 'asset' &&
bundle[i].fileName.endsWith('.css'));
unusedCssAssets = allCssAssets.filter(cssAsset => !cssAssets.includes(cssAsset));
await globalCssInjection(bundle, cssAssets, buildCssCode, jsAssetsFilterFunction, topExecutionPriorityFlag);

@@ -65,0 +68,0 @@ }

2

package.json
{
"name": "vite-plugin-css-injected-by-js",
"version": "3.5.0",
"version": "3.5.1",
"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