Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

esbuild platform=node & mjs imports #116

Closed
noahehall opened this issue Sep 25, 2021 · 0 comments
Closed

esbuild platform=node & mjs imports #116

noahehall opened this issue Sep 25, 2021 · 0 comments
Assignees
Labels
good first issue for use in github automation to suggest issues to newcommers

Comments

@noahehall
Copy link
Owner

noahehall commented Sep 25, 2021

evanw/esbuild#1622
evanw/esbuild#1591
evanw/esbuild#1540
esnext/es6-module-transpiler#85
https://github.com/handlebars-lang/handlebars.js/blob/master/lib/index.js
https://sokra.github.io/interop-test/

likely one of htese is our solution: we need to explicity point the main field to cjs (duh) and module to mjs/browser (duh)

this issue was fixed internally by ensuring esm > cjs transpilation was accurate

@see https://sokra.github.io/interop-test/
@see https://stackoverflow.com/questions/46745014/alternative-for-dirname-in-node-when-using-the-experimental-modules-flag

@noahehall noahehall self-assigned this Sep 25, 2021
@noahehall noahehall added the good first issue for use in github automation to suggest issues to newcommers label Sep 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue for use in github automation to suggest issues to newcommers
Projects
None yet
Development

No branches or pull requests

1 participant