detect-gpu
detect-gpu copied to clipboard
fix: bump build target, correctly downlevel transpile
Fixes #89 and #86, following up #94, where things aren't being transpiled correctly.
According to https://esbuild.github.io/api/#target:
If you use a syntax feature that esbuild doesn't yet have support for transforming to your current language target, esbuild will generate an error where the unsupported syntax is used. This is often the case when targeting the
es5language version, for example, since esbuild only supports transforming most newer JavaScript syntax features toes6.
Also see https://esbuild.github.io/content-types/#javascript as for JS features by version.