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

[BUG] buildOptions.sourcemap doesn't generate sourcemaps for local files #3107

Closed
4 tasks done
sant123 opened this issue Apr 6, 2021 · 2 comments
Closed
4 tasks done

Comments

@sant123
Copy link

sant123 commented Apr 6, 2021

Bug Report Quick Checklist

  • I am on the latest version of Snowpack & all plugins.
  • I use package manager npm
  • I run Snowpack on OS Mac
  • I run Snowpack on Node.js v12+

Describe the bug

Setting buildOptions.sourcemap: true doesn't generate sourcemaps

To Reproduce

We can't fix bugs that we can't see for ourselves. Issues often need to be closed if this section is skipped.

  1. npx create-snowpack-app testing-hmr --template @snowpack/app-template-react
  2. cd testing-hmr
  3. Set buildOptions.sourcemap: truein snowpack.config.js
  4. npm start
  5. See chrome devtools not loading sourcemaps for index.jsx and App.jsx
  6. You will notice the same with npm run build

Expected behavior

Sourcemaps should be working

Anything else?

Nope 😄 thank you!

@drwpow
Copy link
Collaborator

drwpow commented Apr 16, 2021

Thanks for filing! This is a heavily-requested feature, and one we’ll be adding soon! Please track this using this issue instead: #1213

@drwpow drwpow closed this as completed Apr 16, 2021
@sant123
Copy link
Author

sant123 commented Apr 16, 2021

Sounds beautiful, thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants