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
|
@ -13,18 +13,6 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define('pdfjs/core/charsets', ['exports'], factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
factory(exports);
|
||||
} else {
|
||||
factory((root.pdfjsCoreCharsets = {}));
|
||||
}
|
||||
}(this, function (exports) {
|
||||
|
||||
var ISOAdobeCharset = [
|
||||
'.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar',
|
||||
'percent', 'ampersand', 'quoteright', 'parenleft', 'parenright',
|
||||
|
@ -125,7 +113,8 @@ var ExpertSubsetCharset = [
|
|||
'periodinferior', 'commainferior'
|
||||
];
|
||||
|
||||
exports.ISOAdobeCharset = ISOAdobeCharset;
|
||||
exports.ExpertCharset = ExpertCharset;
|
||||
exports.ExpertSubsetCharset = ExpertSubsetCharset;
|
||||
}));
|
||||
export {
|
||||
ISOAdobeCharset,
|
||||
ExpertCharset,
|
||||
ExpertSubsetCharset,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue