Merge pull request #10015 from cheryly279/add-chunkname

Adding chunkname to async loaded code
This commit is contained in:
Tim van der Meij 2018-08-29 22:31:17 +02:00 committed by GitHub
commit 49cd8da7ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ if (typeof PDFJSDev !== 'undefined' && PDFJSDev.test('GENERIC')) {
worker = __non_webpack_require__('./pdf.worker.js');
}
callback(worker.WorkerMessageHandler);
});
}, null, 'pdfjsWorker');
}) : dynamicLoaderSupported ? (function (callback) {
requirejs(['pdfjs-dist/build/pdf.worker'], function (worker) {
callback(worker.WorkerMessageHandler);