Skip to content

Commit

Permalink
Fixed an issue when running Stylus inside of an .asar archive
Browse files Browse the repository at this point in the history
Could not figure out why the importer resolves the wrong path when stylus is run inside of an asar archive but putting an absolute path fixes the issue.
  • Loading branch information
Subash authored Jan 5, 2020
1 parent cf3792a commit baba86d
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 baba86d

Please sign in to comment.