pdf.js/external/builder
Jonas Jenwald 14ef0b4211 Remove empty, top-level, nodes in the Babel plugin
Looking at the *built* files you'll notice some lines containing nothing more than a semicolon. This is the result of (mostly top-level) `if`-statements, which include `PDFJSDev`-checks, that evalute to `false` during Babel parsing.

This has always annoyed me a bit, and looking at Babel plugin it seems that we can fix this simply by *removing* the relevant nodes.
2024-02-09 13:58:24 +01:00
..
fixtures Handle CSS-comments better in the preprocess-function (PR 14963 follow-up) 2022-06-02 16:06:47 +02:00
fixtures_esprima Remove empty, top-level, nodes in the Babel plugin 2024-02-09 13:58:24 +01:00
babel-plugin-pdfjs-preprocessor.mjs Remove empty, top-level, nodes in the Babel plugin 2024-02-09 13:58:24 +01:00
builder.mjs Use object destructuring, rather than the merge helper, in the gulpfile 2023-10-18 13:49:26 +02:00
test-fixtures_esprima.mjs Replace the webpack+acorn transform with a Babel plugin 2024-01-23 16:00:59 +01:00
test-fixtures.mjs Replace the webpack+acorn transform with a Babel plugin 2024-01-23 16:00:59 +01:00