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

rollup-plugin-css-only

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-css-only - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

12

dist/index.cjs.js

@@ -14,2 +14,3 @@ 'use strict';

var dest = options.output
var changes = 0

@@ -31,4 +32,8 @@ return {

// Map of every stylesheet
styles[id] = code
// Keep track of every stylesheet
// Check if it changed since last render
if (styles[id] !== code && (styles[id] || code)) {
styles[id] = code
changes++
}

@@ -39,5 +44,6 @@ return ''

// No stylesheet needed
if (options.output === false) {
if (!changes || options.output === false) {
return
}
changes = 0

@@ -44,0 +50,0 @@ // Combine all stylesheets

@@ -10,2 +10,3 @@ import { writeFile } from 'fs';

var dest = options.output
var changes = 0

@@ -27,4 +28,8 @@ return {

// Map of every stylesheet
styles[id] = code
// Keep track of every stylesheet
// Check if it changed since last render
if (styles[id] !== code && (styles[id] || code)) {
styles[id] = code
changes++
}

@@ -35,5 +40,6 @@ return ''

// No stylesheet needed
if (options.output === false) {
if (!changes || options.output === false) {
return
}
changes = 0

@@ -40,0 +46,0 @@ // Combine all stylesheets

{
"name": "rollup-plugin-css-only",
"version": "0.0.3",
"version": "0.0.4",
"description": "Rollup plugin that bundles imported css",

@@ -5,0 +5,0 @@ "main": "dist/index.cjs.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