Cameron Howey
Cameron Howey
Reversely, adding support for `const`/`let` => `var` is probably the most straightforward lowering that you could ask for. If it is a comparable amount of work to do that replacement...
You are right, a straight replacement won't work. Here is an [example using Babel](https://babeljs.io/repl#?browsers=&build=&builtIns=false&spec=false&loose=false&code_lz=G4QwTgBCA0EEYG4BQBvJEIGMD2A7AzgC5QQC8EAjMhqJHGRAEzIC-SQA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=false&presets=env%2Ces2015%2Cenv&prettier=false&targets=&version=7.11.1&externalPlugins=): ```js // input var a, b; { const a = 1; var b = 2; }...
From the Verge article: > While it’s still going to take some time to pry enterprise users of Internet Explorer 11 away, Microsoft is hoping that the new Internet Explorer...
> Realistically you would also probably need polyfills for various features such as maps, sets, typed arrays, and maybe promises? But esbuild is only concerned about the syntax transforms, not...
Honestly I work with Go-based servers. esbuild has the potential to completely eliminate Node and NPM from my development workflow. An esbuild-based Go HTTP handler could understand JavaScript source trees...
If you do implement a plugin system, please consider making it Go-based (or better yet, cross-language as per @zmitry's suggestion). I think there is a very big opportunity for non-JS-based...
CSS extraction was actually pretty simple in Go: ```go package main import ( "bytes" "io" "os" "github.com/evanw/esbuild/pkg/api" ) var cssExport = "export default {};\n" // CSSExtractor will accumulate CSS into...
Is there a recommended way to distribute Go plugins? I can't think of anything clever. It seems like I need to re-compile esbuild with my plugin.
Mainly I wanted to be able to write a Go plugin and have it usable by other members of the team. I understand now the use case for a Go...
I have trouble with this too. It seems like the fix is simple: add an `Unwrap` method in [errors.go](https://github.com/golang-jwt/jwt/blob/main/errors.go): ```go func (e ValidationError) Unwrap() error { return e.Inner } ```