mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #16831 from Snuffleupagus/rm-no-babel-preset
Remove the "no-babel-preset" comment used with the LIB build-target (PR 16829 follow-up)
This commit is contained in:
commit
43ab1d2da7
2 changed files with 1 additions and 3 deletions
|
@ -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",
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue