mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Convert the files in the /src/core
folder to ES6 modules
Please note that the `glyphlist.js` and `unicode.js` files are converted to CommonJS modules instead, since Babel cannot handle files that large and they are thus excluded from transpilation.
This commit is contained in:
parent
b66b705ed7
commit
982b6aa65b
34 changed files with 3504 additions and 4203 deletions
|
@ -14,20 +14,7 @@
|
|||
*/
|
||||
/* eslint-disable no-multi-spaces */
|
||||
|
||||
'use strict';
|
||||
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define('pdfjs/core/jpg', ['exports', 'pdfjs/shared/util'], factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
factory(exports, require('../shared/util.js'));
|
||||
} else {
|
||||
factory((root.pdfjsCoreJpg = {}), root.pdfjsSharedUtil);
|
||||
}
|
||||
}(this, function (exports, sharedUtil) {
|
||||
|
||||
var warn = sharedUtil.warn;
|
||||
var error = sharedUtil.error;
|
||||
import { error, warn } from '../shared/util';
|
||||
|
||||
/**
|
||||
* This code was forked from https://github.com/notmasteryet/jpgjs.
|
||||
|
@ -1138,5 +1125,6 @@ var JpegImage = (function JpegImageClosure() {
|
|||
return JpegImage;
|
||||
})();
|
||||
|
||||
exports.JpegImage = JpegImage;
|
||||
}));
|
||||
export {
|
||||
JpegImage,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue