Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -286,4 +286,7 @@ temp-cache.json
junit.xml

# ApiExtractor
temp/
temp/

# Temp json files
*.json.temp
2 changes: 1 addition & 1 deletion .pipelines/1p-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ resources:
- repository: 1P
type: git
name: IDDP/msal-javascript-1p
ref: master
ref: bundle-analysis-script

extends:
template: v2/OneBranch.NonOfficial.CrossPlat.yml@templates # https://aka.ms/obpipelines/templates
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Add bundle size tracking CI step #7746",
"packageName": "@azure/msal-browser",
"email": "[email protected]",
"dependentChangeType": "none"
}
19 changes: 19 additions & 0 deletions lib/msal-browser/bundleStats/bundleStats.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"msal-browser": {
"base": {
"size": 931.07,
"unit": "KB",
"fileName": "msal-browser.js"
},
"minified": {
"size": 304.28,
"unit": "KB",
"fileName": "msal-browser.min.js"
},
"minifiedGzipped": {
"size": 73.49,
"unit": "KB",
"fileName": "msal-browser.min.js.gz"
}
}
}
4 changes: 3 additions & 1 deletion lib/msal-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@
"prepack": "npm run build:all",
"format:check": "prettier --ignore-path .gitignore --check src test",
"format:fix": "prettier --ignore-path .gitignore --write src test",
"apiExtractor": "api-extractor run"
"apiExtractor": "api-extractor run",
"bundleSize:analyze": "node ../../../release-scripts/analyzeBundleSize.js --3p",
"bundleSize:generate": " node ../../../release-scripts/analyzeBundleSize.js --3p --local"
},
"devDependencies": {
"@azure/storage-blob": "^12.2.1",
Expand Down