Socket
Socket
Sign inDemoInstall

stylus-loader

Package Overview
Dependencies
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylus-loader - npm Package Compare versions

Comparing version 2.1.2 to 2.2.0

2

index.js

@@ -117,3 +117,3 @@ var loaderUtils = require('loader-utils');

// Use plugins here so that resolve related side effects can be used while we resolve imports.
use.forEach(styl.use, styl);
(Array.isArray(use) ? use : [use]).forEach(styl.use, styl);

@@ -120,0 +120,0 @@ when

@@ -37,3 +37,3 @@ var Parser = require('stylus/lib/parser');

ImportVisitor.prototype.visitCall = function(fn) {
if (fn.name === 'use') {
if (fn.name === 'use' || fn.name === 'json') {
this.importPaths.push(fn.args.first.string);

@@ -40,0 +40,0 @@ }

{
"name": "stylus-loader",
"version": "2.1.2",
"version": "2.2.0",
"description": "Stylus loader for webpack",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -105,2 +105,3 @@ # stylus-loader

* Please see https://github.com/shama/stylus-loader/releases
* 2.2.0 - Let stylus use option be just a function (@yuffiy), Track json calls as imports like use calls (@gnarf)
* 2.1.2 - Fix support for stylus include config (@andrewburgess), Add block-level imports to listimports (@kenaniah)

@@ -107,0 +108,0 @@ * 2.1.1 - Support Node 6 (@yyx990803), Test in webpack 1 and 2 (@phyllisstein)

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