Skip to content

Commit

Permalink
Give priority to styl files in StylusAsset resolver (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon93s authored and devongovett committed Apr 13, 2018
1 parent 3435c4c commit 89952d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/assets/StylusAsset.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ async function createEvaluator(asset) {
asset.name
);
const utils = await localRequire('stylus/lib/utils', asset.name);
const resolver = new Resolver(asset.options);
const resolver = new Resolver(
Object.assign({}, asset.options, {
extensions: ['.styl', '.css']
})
);

// This is a custom stylus evaluator that extends stylus with support for the node
// require resolution algorithm. It also adds all dependencies to the parcel asset
Expand Down

0 comments on commit 89952d7

Please sign in to comment.