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

windicss-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

windicss-webpack-plugin - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

7

dist/loaders/pitcher.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pitch = void 0;
const constants_1 = require("../constants");
const isTemplateLoader = (l) => /(\/|\\|@)transform-template/.test(l.path);
const postCSSLoader = (l) => /(\/|\\|@)postcss-loader/.test(l.path);
const cssLoader = (l) => /(\/|\\|@)css-loader/.test(l.path);
const isPitcherLoader = (l) => `${constants_1.NAME}:pitcher` === l.ident;
const pitch = function (remainingRequest) {
// remove the pitcher immediately
this.loaders.splice(0, 1);
const pitcherLoaderIndex = this.loaders.findIndex(isPitcherLoader);
if (pitcherLoaderIndex !== -1) {
this.loaders.splice(pitcherLoaderIndex, 1);
}
/*

@@ -11,0 +16,0 @@ * Move the position of the transform-template loader for Vue SFCs.

@@ -19,7 +19,14 @@ "use strict";

try {
// avoid duplicate scanning on HMR
if (service.scanned && service.options.enableScan) {
service.options.enableScan = false;
}
const css = await service.generateCSS();
css.replace('(boot)', '(generated)');
callback(null, source + '\n' + css);
}
catch (e) {
callback(e, source + '\n' + `/* Error: ${JSON.stringify(e, null, 2)}*/`);
const error = JSON.stringify(e, null, 2);
this.emitError(`[Windi CSS] Failed to generate CSS. Error: ${error}`);
callback(e, source + '\n' + `/* Error: ${error}*/`);
}

@@ -60,3 +67,3 @@ };

try {
service.extractFile(content.data, content.id, service.options.transformGroups);
await service.extractFile(content.data, content.id, service.options.transformGroups);
}

@@ -63,0 +70,0 @@ catch (e) {

2

package.json
{
"name": "windicss-webpack-plugin",
"version": "0.5.1",
"version": "0.5.2",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": {

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