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

@parcel/transformer-sass

Package Overview
Dependencies
Maintainers
1
Versions
883
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcel/transformer-sass - npm Package Compare versions

Comparing version 2.0.0-canary.1742 to 2.0.0-canary.1749

10

lib/SassTransformer.js

@@ -21,2 +21,9 @@ "use strict";

}
function _sass() {
const data = _interopRequireDefault(require("sass"));
_sass = function () {
return data;
};
return data;
}
var _legacy = require("./legacy");

@@ -91,2 +98,5 @@ var _modern = require("./modern");

function detectVersion(config) {
if (!_sass().default.compileStringAsync) {
return 'legacy';
}
for (let legacyOption of ['data', 'indentType', 'indentWidth', 'linefeed', 'outputStyle', 'importer', 'pkgImporter', 'includePaths', 'omitSourceMapUrl', 'outFile', 'sourceMapContents', 'sourceMapEmbed', 'sourceMapRoot']) {

@@ -93,0 +103,0 @@ if (config[legacyOption] != null) {

10

package.json
{
"name": "@parcel/transformer-sass",
"version": "2.0.0-canary.1742+ba2aceaf9",
"version": "2.0.0-canary.1749+a53f8f3ba",
"license": "MIT",

@@ -20,10 +20,10 @@ "publishConfig": {

"node": ">= 16.0.0",
"parcel": "^2.0.0-canary.1740+ba2aceaf9"
"parcel": "^2.0.0-canary.1747+a53f8f3ba"
},
"dependencies": {
"@parcel/plugin": "2.0.0-canary.1742+ba2aceaf9",
"@parcel/plugin": "2.0.0-canary.1749+a53f8f3ba",
"@parcel/source-map": "^2.1.1",
"sass": "^1.79.4"
"sass": "^1.38.0"
},
"gitHead": "ba2aceaf93fb1695a02b6ab8d0834da0cef9773f"
"gitHead": "a53f8f3ba1025c7ea8653e9719e0a61ef9717079"
}
// @flow
import {Transformer} from '@parcel/plugin';
import path from 'path';
import sass from 'sass';
import {transformLegacy} from './legacy';

@@ -74,2 +75,6 @@ import {transformModern} from './modern';

function detectVersion(config: any) {
if (!sass.compileStringAsync) {
return 'legacy';
}
for (let legacyOption of [

@@ -76,0 +81,0 @@ 'data',

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