From 4c2a8dd164768539aa65ad008d626a68a725af11 Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Wed, 27 Oct 2021 19:00:30 -0400 Subject: [PATCH] ARROW-14492: [JS] Fix export for browser bundles Closes #11565 from domoritz/dom/browser-bundle Authored-by: Dominik Moritz Signed-off-by: Dominik Moritz --- js/gulp/package-task.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/gulp/package-task.js b/js/gulp/package-task.js index 23edf0b8c6ce9..321e65a30c0e5 100644 --- a/js/gulp/package-task.js +++ b/js/gulp/package-task.js @@ -60,8 +60,8 @@ const createMainPackageJson = (target, format) => (orig) => ({ main: `${mainExport}.node.js`, module: `${mainExport}.node.mjs`, browser: { - [`${mainExport}.node.js`]: `${mainExport}.dom.js`, - [`${mainExport}.node.mjs`]: `${mainExport}.dom.mjs` + [`./${mainExport}.node.js`]: `./${mainExport}.dom.js`, + [`./${mainExport}.node.mjs`]: `./${mainExport}.dom.mjs` }, exports: { import: `./${mainExport}.node.mjs`,