Skip to content

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