From 6669a992992c5636c866c6b31acafcae0a47465c Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 13 Aug 2023 08:55:58 +0200 Subject: [PATCH] Remove the "no-babel-preset" comment used with the LIB build-target (PR 16829 follow-up) Similar to the changes in PR 16829, this no longer seems necessary now. --- gulpfile.mjs | 3 +-- src/core/glyphlist.js | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/gulpfile.mjs b/gulpfile.mjs index 966cf3f50..82a2ae184 100644 --- a/gulpfile.mjs +++ b/gulpfile.mjs @@ -1586,8 +1586,7 @@ function buildLibHelper(bundleDefines, inputStream, outputDir) { }; } function preprocess(content) { - const skipBabel = - bundleDefines.SKIP_BABEL || /\/\*\s*no-babel-preset\s*\*\//.test(content); + const skipBabel = bundleDefines.SKIP_BABEL; content = preprocessPDFJSCode(ctx, content); content = babel.transform(content, { sourceType: "module", diff --git a/src/core/glyphlist.js b/src/core/glyphlist.js index 1af6d0da9..d624d3ffa 100644 --- a/src/core/glyphlist.js +++ b/src/core/glyphlist.js @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -/* no-babel-preset */ import { getLookupTableFactory } from "./core_utils.js";