From 939b657d9ee65b8accba3d97962439308a186fd3 Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 30 Sep 2024 02:31:12 +0700 Subject: [PATCH] fix: properly replace imports (#301) --- node.replacer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node.replacer.js b/node.replacer.js index 84b6ccb..caea733 100644 --- a/node.replacer.js +++ b/node.replacer.js @@ -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")';