Skip to content

Commit

Permalink
fix: properly replace imports (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsndr committed Sep 29, 2024
1 parent 3ce2c07 commit 939b657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node.replacer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports.default = ({ orig, file }) => {
if (!file.includes('dist/node') || orig !== 'require("@lib")') {
return 'require("./lib")';
return orig;
}

return 'require("./lib")';
Expand Down

0 comments on commit 939b657

Please sign in to comment.