Skip to content

Commit

Permalink
Merge pull request #2520 from Subash/patch-1
Browse files Browse the repository at this point in the history
Fixed an issue when running Stylus inside of an .asar archive
  • Loading branch information
xdan committed Jul 16, 2020
2 parents 9539c53 + baba86d commit 518afa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function Renderer(str, options) {
options.functions = options.functions || {};
options.use = options.use || [];
options.use = Array.isArray(options.use) ? options.use : [options.use];
options.imports = [join(__dirname, 'functions')].concat(options.imports || []);
options.imports = [join(__dirname, 'functions/index.styl')].concat(options.imports || []);
options.paths = options.paths || [];
options.filename = options.filename || 'stylus';
options.Evaluator = options.Evaluator || Evaluator;
Expand Down

0 comments on commit 518afa8

Please sign in to comment.