Socket
Socket
Sign inDemoInstall

sass-loader

Package Overview
Dependencies
Maintainers
7
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sass-loader - npm Package Compare versions

Comparing version 7.0.0 to 7.0.1

11

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="7.0.1"></a>
## [7.0.1](https://github.com/webpack-contrib/sass-loader/compare/v7.0.0...v7.0.1) (2018-04-13)
### Bug Fixes
* Wrong import precedence (#557) ([f4eeff1](https://github.com/webpack-contrib/sass-loader/commit/f4eeff1))
<a name="7.0.0"></a>

@@ -18,2 +28,3 @@ # [7.0.0](https://github.com/webpack-contrib/sass-loader/compare/v6.0.7...v7.0.0) (2018-04-13)

* Drop official node 4 support
* This slightly changes the resolving algorithm. Should not break in normal usage, but might break in complex configurations.

@@ -20,0 +31,0 @@ * The sass-loader throws an error at runtime now and refuses to compile if the peer dependency is wrong. This could break applications where npm's peer dependency warning was just ignored.

14

lib/importsToResolve.js

@@ -11,3 +11,3 @@ "use strict";

* Since the sass-loader uses webpack to resolve the modules, we need to simulate that algorithm. This function
* returns an array of import paths to try. The first entry in the array is always the original url
* returns an array of import paths to try. The last entry in the array is always the original url
* to enable straight-forward webpack.config aliases.

@@ -25,3 +25,3 @@ *

if (matchModuleImport.test(url)) {
return [url, request];
return [request, url];
}

@@ -38,3 +38,3 @@

if (ext === ".scss" || ext === ".sass") {
return [url, request];
return [request, url];
}

@@ -49,4 +49,4 @@

return [
url,
`${ request }.scss`, `${ request }.sass`, `${ request }.css`
`${ request }.scss`, `${ request }.sass`, `${ request }.css`,
url
];

@@ -58,5 +58,5 @@ }

return [
url,
`${ dirname }/_${ basename }.scss`, `${ dirname }/_${ basename }.sass`, `${ dirname }/_${ basename }.css`,
`${ request }.scss`, `${ request }.sass`, `${ request }.css`
`${ request }.scss`, `${ request }.sass`, `${ request }.css`,
url
];

@@ -63,0 +63,0 @@ }

{
"name": "sass-loader",
"version": "7.0.0",
"version": "7.0.1",
"description": "Sass loader for webpack",

@@ -5,0 +5,0 @@ "author": "J. Tangelder",

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