mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
[api-major] Remove the PDFJS_NEXT
option
Nothing uses this option anymore, so setting it is a no-op now. We can safely remove it. Use `SKIP_BABEL` (instead of `PDFJS_NEXT`) now if you want to skip Babel translation for a build.
This commit is contained in:
parent
4fdb0f57d7
commit
7d7edd9cc6
8 changed files with 8 additions and 26 deletions
|
@ -17,7 +17,6 @@ import { buildGetDocumentParams } from './test_utils';
|
|||
import { DOMCanvasFactory } from '../../src/display/dom_utils';
|
||||
import { getDocument } from '../../src/display/api';
|
||||
import { isNodeJS } from '../../src/shared/util';
|
||||
import { PDFJS } from '../../src/display/global';
|
||||
|
||||
function getTopLeftPixel(canvasContext) {
|
||||
let imgData = canvasContext.getImageData(0, 0, 1, 1);
|
||||
|
@ -38,7 +37,6 @@ describe('custom canvas rendering', function() {
|
|||
|
||||
beforeAll(function(done) {
|
||||
if (isNodeJS()) {
|
||||
PDFJS.pdfjsNext = true;
|
||||
// NOTE: To support running the canvas-related tests in Node.js,
|
||||
// a `NodeCanvasFactory` would need to be added (in test_utils.js).
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue