mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
fix: @babel/parser/bin/index.js contains node: protocol require (#17289)
fix
This commit is contained in:
@@ -410,6 +410,9 @@ function buildRollup(packages, buildStandalone) {
|
||||
getBabelOutputPlugin({
|
||||
configFile: false,
|
||||
babelrc: false,
|
||||
generatorOpts: {
|
||||
compact: false,
|
||||
},
|
||||
plugins: [
|
||||
function babelPluginInlineConstNumericObjects({ types: t }) {
|
||||
return {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env node
|
||||
/* eslint no-var: 0 */
|
||||
/* eslint-disable no-var, unicorn/prefer-node-protocol */
|
||||
|
||||
var parser = require("..");
|
||||
var fs = require("node:fs");
|
||||
var fs = require("fs");
|
||||
|
||||
var filename = process.argv[2];
|
||||
if (!filename) {
|
||||
|
||||
Reference in New Issue
Block a user