mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 17:48:07 +02:00
Ensure that all import
and require
statements, in the entire code-base, have a .js
file extension
In order to eventually get rid of SystemJS and start using native `import`s instead, we'll need to provide "complete" file identifiers since otherwise there'll be MIME type errors when attempting to use `import`.
This commit is contained in:
parent
b833f84307
commit
36881e3770
125 changed files with 453 additions and 443 deletions
|
@ -22,7 +22,7 @@ import {
|
|||
NullStream,
|
||||
PredictorStream,
|
||||
RunLengthStream,
|
||||
} from "./stream";
|
||||
} from "./stream.js";
|
||||
import {
|
||||
assert,
|
||||
bytesToString,
|
||||
|
@ -32,7 +32,7 @@ import {
|
|||
isSpace,
|
||||
StreamType,
|
||||
warn,
|
||||
} from "../shared/util";
|
||||
} from "../shared/util.js";
|
||||
import {
|
||||
Cmd,
|
||||
Dict,
|
||||
|
@ -43,12 +43,12 @@ import {
|
|||
isName,
|
||||
Name,
|
||||
Ref,
|
||||
} from "./primitives";
|
||||
import { CCITTFaxStream } from "./ccitt_stream";
|
||||
import { Jbig2Stream } from "./jbig2_stream";
|
||||
import { JpegStream } from "./jpeg_stream";
|
||||
import { JpxStream } from "./jpx_stream";
|
||||
import { MissingDataException } from "./core_utils";
|
||||
} from "./primitives.js";
|
||||
import { CCITTFaxStream } from "./ccitt_stream.js";
|
||||
import { Jbig2Stream } from "./jbig2_stream.js";
|
||||
import { JpegStream } from "./jpeg_stream.js";
|
||||
import { JpxStream } from "./jpx_stream.js";
|
||||
import { MissingDataException } from "./core_utils.js";
|
||||
|
||||
const MAX_LENGTH_TO_CACHE = 1000;
|
||||
const MAX_ADLER32_LENGTH = 5552;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue