mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Forces UMD header to have relative path and extension for CommonJS.
This commit is contained in:
parent
34aa915441
commit
118b71925c
2 changed files with 3 additions and 3 deletions
2
external/umdutils/verifier.js
vendored
2
external/umdutils/verifier.js
vendored
|
@ -294,7 +294,7 @@ function validateFile(path, name, context) {
|
|||
}
|
||||
var noExtension = i.replace(/\.js$/, '');
|
||||
if (noExtension === i || i[0] !== '.') {
|
||||
warn('CommonJS shall have relative path and extension: ' + i);
|
||||
error('CommonJS shall have relative path and extension: ' + i);
|
||||
return;
|
||||
}
|
||||
var base = name.split('/');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue