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
The exact example at https://github.com/Timer/bundle-subasset does not actually work because the following TypeScript:
import path from 'path'; path.resolve(...)
is transpiled by TypeScript into:
const path = require('path'); path["default"].resolve(...)
which is clearly incorrect.
It does work if you use import * as path from 'path'.
import * as path from 'path'
We should adjust the TypeScript emission to use proper Node.js interop, which is a breaking change to make.
The text was updated successfully, but these errors were encountered:
Is there any workaround that doesn't involve rewriting your imports?
Sorry, something went wrong.
Fixed in #671.
No branches or pull requests
The exact example at https://github.com/Timer/bundle-subasset does not actually work because the following TypeScript:
is transpiled by TypeScript into:
which is clearly incorrect.
It does work if you use
import * as path from 'path'
.We should adjust the TypeScript emission to use proper Node.js interop, which is a breaking change to make.
The text was updated successfully, but these errors were encountered: