# Source Map
Currently only in iOS 6.7.2 And above version support
Mini Program/When the game is packed, it will take all JavaScript Code packaged into a file, in order to facilitate developers debugging on the phone to locate the wrong location, Mini Program/The small game provides [Source Map](https://docs.google.com /document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit) Support.
Open in Developer Tools ES6 turn ES5, when the code is compressed, it will generate Source Map of . map
Documents.Development versionMini Program, the base library uses the code package in the . map
Documents? Yeah. vConsole Remap the error information stack shown in the.
If you use an external build script to process the source file, you simply pass the corresponding generated Source Map File placed in the same directory as the source file
Such as:
pages/index.js
pages/index.js.map
app.js
app.js.map
Developer tools read, parse Source Map File and proceed to upload it
The subsequent operation center in the background of the Mini Program can use the uploaded Source Map File for error analysis
# Note
- Source Map Files are not counted in the code package size calculation and will not be included in the demo version/The official version of the code package.
- inline sourcemap Does not count toward the code package size calculation.
- Development version of the code package due to the inclusion of
.map
Files, the actual code package size will be larger than the trial and official versions.