mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
ES6 modules: remove UMD header validation
This patch is another step towards enabling Babel. Since we're moving towards ES6 modules, we will not be using UMD headers anymore, so we can remove the validation.
This commit is contained in:
parent
754c4bd0ab
commit
5eb090f288
7 changed files with 1 additions and 533 deletions
2
external/builder/preprocessor2.js
vendored
2
external/builder/preprocessor2.js
vendored
|
@ -294,7 +294,7 @@ function fixComments(ctx, node) {
|
|||
// Removes ESLint and other service comments.
|
||||
if (node.leadingComments) {
|
||||
var CopyrightRegExp = /\bcopyright\b/i;
|
||||
var BlockCommentRegExp = /^\s*(globals|eslint|falls through|umdutils)\b/;
|
||||
var BlockCommentRegExp = /^\s*(globals|eslint|falls through)\b/;
|
||||
var LineCommentRegExp = /^\s*eslint\b/;
|
||||
|
||||
var i = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue