mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
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.
This commit is contained in:
parent
690b873897
commit
6669a99299
2 changed files with 1 additions and 3 deletions
|
@ -1586,8 +1586,7 @@ function buildLibHelper(bundleDefines, inputStream, outputDir) {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
function preprocess(content) {
|
function preprocess(content) {
|
||||||
const skipBabel =
|
const skipBabel = bundleDefines.SKIP_BABEL;
|
||||||
bundleDefines.SKIP_BABEL || /\/\*\s*no-babel-preset\s*\*\//.test(content);
|
|
||||||
content = preprocessPDFJSCode(ctx, content);
|
content = preprocessPDFJSCode(ctx, content);
|
||||||
content = babel.transform(content, {
|
content = babel.transform(content, {
|
||||||
sourceType: "module",
|
sourceType: "module",
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
/* no-babel-preset */
|
|
||||||
|
|
||||||
import { getLookupTableFactory } from "./core_utils.js";
|
import { getLookupTableFactory } from "./core_utils.js";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue