Skip to content

Commit

Permalink
fix: ensure exports loaded when in node_modules folder
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Jun 20, 2024
1 parent 339c28d commit bfe85d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/moody-spoons-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@marko/compiler": patch
---

When loading a taglib, always process exports field if inside node_modules folder.
2 changes: 1 addition & 1 deletion packages/compiler/src/taglib/loader/loadTaglibFromProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class TaglibLoader {
var path = this.filePath;
var dirname = this.dirname;

if (taglib.isFromPackageJson) {
if (taglib.isFromPackageJson || /[\\/]node_modules[\\/]/.test(path)) {
taglib.tagsDir = false;

scanTagsDir(
Expand Down

0 comments on commit bfe85d1

Please sign in to comment.