Ported cjs-module-lexer over to pure Go #1276
Unanswered
matthewmueller
asked this question in
General
Replies: 1 comment
-
|
nice! does it support condition reexport? for example: if (process.env.NODE_ENV === "development") {
module.exports = require("./index.development.js")
} else {
module.exports = require("./index.production.js")
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I just wanted to share that I ported over the C implementation of cjs-module-lexer to pure Go:
https://github.com/matthewmueller/cjslexer
I think it'd be nice to not have to shell out to another process and deploy esm.sh as a single binary.
Feel free to close this issue if not helpful!
Beta Was this translation helpful? Give feedback.
All reactions