We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c5ec64 commit 18a3971Copy full SHA for 18a3971
src/app/store/entities/sandboxes/bundler/index.js
@@ -10,6 +10,7 @@ import logError from '../../../../utils/error';
10
const debug = _debug('cs:app:packager');
11
12
export const PACKAGER_URL = 'https://cdn.jsdelivr.net/webpack/v3';
13
+export const NEW_PACKAGER_URL = 'https://cdn.jsdelivr.net/webpack/v4';
14
15
const RETRY_COUNT = 10;
16
@@ -20,6 +21,13 @@ const RETRY_COUNT = 10;
20
21
* @param {string} query The dependencies to call
22
*/
23
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
+
31
let retries = 0;
32
33
while (true) {
0 commit comments