From 0d2621c5378abbc79ca52e344488c06e696a1564 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Sat, 27 Aug 2022 00:02:47 -0700 Subject: [PATCH 1/2] fix: do not include the node_modules in the esm node bundle --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7a6ccab..c6bca4f 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "node": ">=16.x" }, "optimize": true, - "includeNodeModules": true, + "includeNodeModules": false, "outputFormat": "esmodule", "isLibrary": true }, From c9d2d7b03c712b9cadffa60f769102e1e99e0fc2 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Sat, 27 Aug 2022 00:08:17 -0700 Subject: [PATCH 2/2] fix: make repalce-ext external --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index c6bca4f..b9d8df6 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,10 @@ "node": ">=12.x" }, "optimize": true, - "includeNodeModules": true, + "includeNodeModules": { + "escape-string-regexp": true, + "replace-ext": false + }, "outputFormat": "commonjs", "isLibrary": true },