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

rollup-plugin-sass

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-sass - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

15

index.js
'use strict';
var path = require('path');
var nodeSass = require('node-sass');

@@ -8,3 +9,2 @@ var rollupPluginutils = require('rollup-pluginutils');

var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
var filter = rollupPluginutils.createFilter(options.include || [ '**/*.sass', '**/*.scss' ], options.exclude || 'node_modules/**');

@@ -19,5 +19,12 @@

return new Promise(function (resolve, reject) {
nodeSass.render(Object.assign({
var paths = [path.dirname(id), process.cwd()];
var sassConfig = Object.assign({
file: id
}, options.config || {}), function (error, result) {
});
sassConfig.includePaths = sassConfig.includePaths
? sassConfig.includePaths.concat(paths)
: paths;
nodeSass.render(sassConfig, function (error, result) {
var temp = {

@@ -29,3 +36,3 @@ code: result.css.toString(),

if (error) {
temp.error = error;
temp.error = error.codeFrame;
reject(error);

@@ -32,0 +39,0 @@ }

{
"name": "rollup-plugin-sass",
"version": "0.0.5",
"version": "0.0.6",
"description": "Rollup .sass files.",

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

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