rollup-plugin-less
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -76,21 +76,24 @@ 'use strict'; | ||
options.output = options.output || 'rollup.build.css'; | ||
if (options.plugins) { | ||
options.option['plugins'] = options.plugins; | ||
} | ||
_context.next = 9; | ||
_context.next = 10; | ||
return renderSync(code, options.option); | ||
case 9: | ||
case 10: | ||
css = _context.sent; | ||
if (!(options.output && isFunc(options.output))) { | ||
_context.next = 14; | ||
_context.next = 15; | ||
break; | ||
} | ||
_context.next = 13; | ||
_context.next = 14; | ||
return options.output(css, id); | ||
case 13: | ||
case 14: | ||
css = _context.sent; | ||
case 14: | ||
case 15: | ||
@@ -118,8 +121,8 @@ if (options.output && isString(options.output)) { | ||
case 20: | ||
_context.prev = 20; | ||
case 21: | ||
_context.prev = 21; | ||
_context.t0 = _context['catch'](3); | ||
throw _context.t0; | ||
case 23: | ||
case 24: | ||
case 'end': | ||
@@ -129,3 +132,3 @@ return _context.stop(); | ||
} | ||
}, _callee, _this, [[3, 20]]); | ||
}, _callee, _this, [[3, 21]]); | ||
}))(); | ||
@@ -132,0 +135,0 @@ } |
{ | ||
"name": "rollup-plugin-less", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "a rollup plugin for less files", | ||
@@ -5,0 +5,0 @@ "main": "dist/rollup-plugin-less.js", |
@@ -39,2 +39,5 @@ import fs from 'fs-extra'; | ||
options.output = options.output || 'rollup.build.css'; | ||
if (options.plugins) { | ||
options.option['plugins'] = options.plugins | ||
} | ||
@@ -41,0 +44,0 @@ let css = await renderSync(code, options.option); |
Sorry, the diff of this file is not supported yet
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
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
19259
414