privatenumber / esbuild-loader

💠 Speed up your Webpack with esbuild ⚡️
MIT License
3.58k stars 106 forks source link

const transform = implementation?.transform ?? esbuild.transform; 142 ^ 143 SyntaxError: Unexpected token '.' #378

Closed shengxingwang closed 3 months ago

shengxingwang commented 3 months ago

Problem

const transform = implementation?.transform ?? esbuild.transform; 142 ^ 143 SyntaxError: Unexpected token '.'

Expected behavior

const transform = implementation?.transform ?? esbuild.transform; 142 ^ 143 SyntaxError: Unexpected token '.'

Minimal reproduction URL

none

Version

v4.2.1

Node.js version

v16.20.2

Package manager

npm

Operating system

macOS

Contributions

shengxingwang commented 3 months ago

build fail

privatenumber commented 3 months ago

Upgrade your Node.js

v16 is no longer maintained: https://endoflife.date/nodejs