Skip to content

Commit

Permalink
ARROW-14492: [JS] Fix export for browser bundles
Browse files Browse the repository at this point in the history
Closes #11565 from domoritz/dom/browser-bundle

Authored-by: Dominik Moritz <[email protected]>
Signed-off-by: Dominik Moritz <[email protected]>
  • Loading branch information
domoritz committed Oct 27, 2021
1 parent 112fde5 commit 4c2a8dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/gulp/package-task.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down

0 comments on commit 4c2a8dd

Please sign in to comment.