- Home
- Getting Started
- Adding Mobile Solution Extensions
- Manually Uploading Bundles
- Debugging Solution Extensions Using Sourcemaps
You can upload solution extensions with sourcemaps to allow debugging on your server.
To upload your solution extension with sourcemaps you must ensure that your tooling packages meet the following minimum requirements:
Package Name | Minimum Version |
---|---|
@sassoftware/vi-solution-extension-create | 1.1 |
@sassoftware/vi-solution-extension-angular-schematics | 1.3 |
@sassoftware/vi-solution-extension-upload | 0.5 |
To upload your solution extension with sourcemaps run the following commands:
npm run watch:debug
npm run watch:mobile-debug
SAS recommends that you re-upload your solution extension using the regular commands (shown below) after debugging is complete. This removes the sourcemaps from the uploaded bundle and optimizes the code.
npm run watch
npm run watch:mobile
If the current workspace was scaffolded out using an older version of the tooling packages the required scripts to upload sourcemaps as part of the bundle may be missing. In this case make sure all tooling packages match the versions listed previously and add the following commands to the workspace's package.json under scripts:
"watch:debug": "env-cmd ng build --configuration development --project elements --output-hashing none --single-bundle --watch --plugin @sassoftware/vi-solution-extension-upload/src/upload-bundle.ngx-plugin"
"watch:mobile-debug": "env-cmd ng build --configuration development --project mobile-elements --output-hashing none --single-bundle --watch --plugin @sassoftware/vi-solution-extension-upload/src/upload-bundle.ngx-plugin"