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
1,475 changes: 1,049 additions & 426 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions packages/angular/scripts/test-code-split.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Validates that per-component imports let a bundler code-split Ionic components.
* Inspects `www/stats.json`, the esbuild metafile, to see which output chunk a
* component landed in. `ion-toggle` is used by only the home page, so it
* should not be bundled with the landing page.
* Inspects `www/browser-stats.json`, the esbuild metafile, to see which output
* chunk a component landed in. `ion-toggle` is used by only the home page, so
* it should not be bundled with the landing page.
*
* Build core and the angular package before running this test.
*/
Expand All @@ -12,7 +12,7 @@ const path = require('path');
const { execSync } = require('node:child_process');

const PROJECT_DIR = path.join(__dirname, '../test/code-split');
const STATS_FILE = path.join(PROJECT_DIR, 'www/stats.json');
const STATS_FILE = path.join(PROJECT_DIR, 'www/browser-stats.json');


function collectChunks(stats, startChunkName, chunkSet)
Expand Down
Loading
Loading