@parcel/transformer-sass
Advanced tools
Comparing version 2.0.0-canary.1742 to 2.0.0-canary.1749
@@ -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) { |
{ | ||
"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', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
29041
844
Updatedsass@^1.38.0