Skip to content

Commit 18a3971

Browse files
author
Ives van Hoorne
committed
Add packager v4 so we can already build cache
1 parent 3c5ec64 commit 18a3971

File tree

1 file changed

+8
-0
lines changed
  • src/app/store/entities/sandboxes/bundler

1 file changed

+8
-0
lines changed

src/app/store/entities/sandboxes/bundler/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import logError from '../../../../utils/error';
1010
const debug = _debug('cs:app:packager');
1111

1212
export const PACKAGER_URL = 'https://cdn.jsdelivr.net/webpack/v3';
13+
export const NEW_PACKAGER_URL = 'https://cdn.jsdelivr.net/webpack/v4';
1314

1415
const RETRY_COUNT = 10;
1516

@@ -20,6 +21,13 @@ const RETRY_COUNT = 10;
2021
* @param {string} query The dependencies to call
2122
*/
2223
async function requestPackager(query: string) {
24+
// Also call new packager to build cache
25+
try {
26+
callApi(`${NEW_PACKAGER_URL}/${query}/manifest.json`);
27+
} catch (e) {
28+
console.error(e);
29+
}
30+
2331
let retries = 0;
2432

2533
while (true) {

0 commit comments

Comments
 (0)