Skip to content

fix: respect sourceMap option - #141

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

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

Conversation

@danielroe

@danielroedanielroe commented Apr 21, 2022

Copy link
Copy Markdown
Member

❓ 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.

@danielroedanielroe added the bug Something isn't working label Apr 21, 2022
@danielroe
danielroe requested a review from pi0April 21, 2022 14:51
@danielroedanielroe self-assigned this Apr 21, 2022
@pi0pi0 changed the title fix: default esbuild sourceMap optionfix: respect sourceMap optionApr 22, 2022
Comment threadsrc/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 mainApr 22, 2022
@pi0
pi0 deleted the fix/esbuild-sourcemap branch April 22, 2022 16:38
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugSomething isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@danielroe@pi0