-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
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 module imported with the path alias specified in paths in tsconfig.json is not being bundled #3160
Comments
I guess this is because Note that |
@hyrious thank you for the reply, I trying to bundle my node app to esm syntax output (mjs), any suggestion? |
One possible way is to use let pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'))
esbuild.build({ ...options, external: Object.keys(pkg.dependencies) }) |
https://esbuild.github.io/try/#YgAwLjE4LjIALS1idW5kbGUgLS1wbGF0Zm9ybT1uZXV0cmFsIC0tcGFja2FnZXM9ZXh0ZXJuYWwAZQBzcmMvaW5kZXgudHMAaW1wb3J0IHsgZm9vIH0gZnJvbSAnfi9mb28nCgpjb25zb2xlLmxvZyhmb28pAABzcmMvZm9vLnRzAGV4cG9ydCBjb25zdCBmb28gPSAnZm9vJwAAdHNjb25maWcuanNvbgB7CiAgImNvbXBpbGVyT3B0aW9ucyI6IHsKICAgICJzdHJpY3QiOiB0cnVlLAogICAgIm1vZHVsZVJlc29sdXRpb24iOiAiYnVuZGxlciIsCiAgICAibW9kdWxlIjogIkVTTmV4dCIsCiAgICAidGFyZ2V0IjogIkVTTmV4dCIsCiAgICAiYmFzZVVybCI6ICJzcmMiLAogICAgInBhdGhzIjogewogICAgICAifi8qIjogWyIqIl0KICAgIH0KICB9LAogICJpbmNsdWRlIjogWyJzcmMvKiovKiJdLAogICJleGNsdWRlIjogWyJub2RlX21vZHVsZXMiXQp9
Expect the output to be:
The text was updated successfully, but these errors were encountered: