We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
main.mjs:
import { answer } from './file.cjs' console.log(answer)
file.cjs:
module.exports = require('./answer.cjs')
answer.cjs:
exports.answer = 42
Logs undefined. There was an attempt to fix that in #196 but it seems to be on rollup side.
undefined
I will use this issue to track what's hapenning on the rollup issue and eventually find alternatives or workaround.
The text was updated successfully, but these errors were encountered:
Promising but only command line https://github.com/azu/commonjs-to-es-module-codemod
Sorry, something went wrong.
I will go with
https://github.com/snowpackjs/snowpack/blob/d004e827e0781144cc84c5d935c64996e4723116/esinstall/src/rollup-plugins/rollup-plugin-wrap-install-targets.ts#L62
and
https://github.com/snowpackjs/snowpack/blob/d004e827e0781144cc84c5d935c64996e4723116/esinstall/src/index.ts#L337-L344
dmail
Successfully merging a pull request may close this issue.
main.mjs:
file.cjs:
answer.cjs:
Logs
undefined
.There was an attempt to fix that in #196 but it seems to be on rollup side.
I will use this issue to track what's hapenning on the rollup issue and eventually find alternatives or workaround.
The text was updated successfully, but these errors were encountered: