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

feat: Add source maps option to bundle and push process #1245

Merged
merged 5 commits into from
Dec 13, 2024

Conversation

bc-0dp
Copy link
Contributor

@bc-0dp bc-0dp commented Dec 13, 2024

What?

Adds -S and --source-maps options to stencil-bundle and stencil-push to allow for the inclusion of source-maps in the theme.

This helps with debugging by providing a mapping between the minified code and the original source.

Tools like Noibu may benefit from source maps as debug messages will not be obfuscated: https://help.noibu.com/hc/en-us/articles/7770357274637-Source-Maps-Overview

Screenshots

Screenshot 2024-12-12 at 09 10 01

cc @bigcommerce/team-storefront

- Introduced an option to enable source maps during the build process.
- Helps with debugging by providing a mapping between the minified code and the original source.
- Introduced the  source maps options to stencil-push process.
- Resolved inconsistencies in the formatting of options.
- Ensured proper alignment and indentation for readability.
@jairo-bc jairo-bc merged commit 2604750 into bigcommerce:master Dec 13, 2024
19 checks passed
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

Successfully merging this pull request may close these issues.

2 participants