Skip to content

fix: respect sourceMap option#141

Merged
pi0 merged 3 commits intomainfrom
fix/esbuild-sourcemap
Apr 22, 2022
Merged

fix: respect sourceMap option#141
pi0 merged 3 commits intomainfrom
fix/esbuild-sourcemap

Conversation

@danielroe
Copy link
Copy Markdown
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
Comment thread src/rollup/config.ts Outdated
rollupConfig.plugins.push(esbuild({
target: 'es2019',
sourceMap: true,
sourceMap: nitro.options.sourceMap !== false,
Copy link
Copy Markdown
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