Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
ensure # in paths is supported
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Feb 2, 2016
1 parent fd71dbc commit a91433b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/trace.js
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ Trace.prototype.inlineConditions = function(tree, loader, conditionalEnv) {
if (normalizedDep == '@system-env')
importsSystemEnv = true;

if (normalizedDep.indexOf('#') != -1)
if (normalizedDep.indexOf(/#[:\?\{]/) != -1)
throw new Error('Unable to inline conditional dependency ' + normalizedDep + '. Try including the ' + d + ' dependency of ' + load.name + ' in the build.');

clonedLoad.depMap[d] = normalizedDep;
Expand Down

0 comments on commit a91433b

Please sign in to comment.