.babelrc 或 babel.config.js 里設(shè)置 { "presets": [["@babel/preset-env", {"targets": {"node": "current"}}]] }