Skip to content

Commit

Permalink
CLJS-2658: Fix using linked node_modules
Browse files Browse the repository at this point in the history
enhancedResolve has option which can be set to false to return the
original path instead of the path to which symlink points to.
  • Loading branch information
Deraen authored and swannodette committed Mar 14, 2018
1 parent 0fcc8fd commit 6b9c8c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/cljs/cljs/module_deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ let resolver = enhancedResolve.create({
extensions: ['.js', '.json'],
mainFields: mainFields,
aliasFields: target === 'nodejs' ? [] : ['browser'],
moduleExtensions: ['.js', '.json']
moduleExtensions: ['.js', '.json'],
symlinks: false
});

let md = mdeps({
Expand Down

0 comments on commit 6b9c8c1

Please sign in to comment.