1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +02:00
pdf.js/external/builder
Nicolò Ribaudo 995f5a29aa
Update the Babel plugin to remove empty static blocks
This commit updates the Babel plugin to:
- apply the same flattening logic that we already
  have for blocks, to flatten blocks nested inside
  class static blocks
- remove class static blocks when, after flattening
  all the blocks they contain, they are empty.

Before this commit, the transform output was the
same as the input.
2024-08-05 15:14:05 +02:00
..
fixtures Handle CSS-comments better in the preprocess-function (PR 14963 follow-up) 2022-06-02 16:06:47 +02:00
fixtures_babel Update the Babel plugin to remove empty static blocks 2024-08-05 15:14:05 +02:00
babel-plugin-pdfjs-preprocessor.mjs Update the Babel plugin to remove empty static blocks 2024-08-05 15:14:05 +02:00
builder.mjs Use more optional chaining, and other modern JS, in the building code 2024-02-19 11:34:48 +01:00
test-fixtures.mjs Replace the webpack+acorn transform with a Babel plugin 2024-01-23 16:00:59 +01:00
test-fixtures_babel.mjs Rename builder esprima fixtures to babel 2024-05-09 15:17:30 +02:00