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";