Skip to content
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

fix: respect sourceMap option #141

Merged
merged 3 commits into from
Apr 22, 2022
Merged

fix: respect sourceMap option #141

merged 3 commits into from
Apr 22, 2022

Conversation

danielroe
Copy link
Member

@danielroe danielroe commented Apr 21, 2022

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

We should likely respect nitro.options.sourceMap as default value for esbuild as well.

Related: nuxt/framework#4509

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@danielroe danielroe added the bug Something isn't working label Apr 21, 2022
@danielroe danielroe requested a review from pi0 April 21, 2022 14:51
@danielroe danielroe self-assigned this Apr 21, 2022
@pi0 pi0 changed the title fix: default esbuild sourceMap option fix: respect sourceMap option Apr 22, 2022
@@ -151,7 +151,7 @@ export const getRollupConfig = (nitro: Nitro) => {
// esbuild
rollupConfig.plugins.push(esbuild({
target: 'es2019',
sourceMap: true,
sourceMap: nitro.options.sourceMap !== false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please set the default in options.ts to be same for every usage?

@pi0 pi0 merged commit e5ab741 into main Apr 22, 2022
@pi0 pi0 deleted the fix/esbuild-sourcemap branch April 22, 2022 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants