profile
viewpoint

heyheyhello/haptic 3

Fork of Sinuous with less twist for TSX

heyheyhello/softdom 3

Tiny DOM renderer and serializer for ESM web applications

heyheyhello/stayknit 2

Testing site for Sinuous/Haptic development

heyheyhello/bilinear 1

SENG440 Embedded Systems

heyheyhello/etch 1

Canvas drawing app using Haptic/Sinuous

heyheyhello/sinuous-tsx-example 1

How to do JSX and TSX in Sinuous

heyheyhello/styletakeout 1

Take CSS out of JS

avlec/see 0

Simplified Execution Engine.

heyheyhello/archiveofourown-dl 0

Download metadata from works in your bookmarks

heyheyhello/DefinitelyTyped 0

The repository for high quality TypeScript type definitions.

issue commentevanw/esbuild

[Question] JS / Go plugin interoperability

On second thought, I suppose I could just pipe a process to node from a Go plugin. 🤔

zaydek

comment created time in 24 minutes

issue commentevanw/esbuild

Just wanted to say thanks

感谢 esbuild,它让我们的开发环境1s内启动完成,这对我们来说非常重要 ❤️

sirikon

comment created time in 2 hours

issue commentepoupon/lms

Http::ResponseContinuation: WebWriteEvent::Error

I found these errors in my log as well, as I was experiencing many interruptions/song skips when playing through the Subsonic API (using the play:Sub app for iOS). It had worked fine and stable not too long ago. So after tweaking with various settings in app and other places, I gave up and downgraded to v3.22.0, and I no longer experience any problems.

bmsleight

comment created time in 3 hours

issue commentevanw/esbuild

Just wanted to say thanks

I am impressed by the quality and the speed of esbuild... a big thank you from me too!

sirikon

comment created time in 5 hours

issue commentgzuidhof/starboard-notebook

Configuring from another site?

After spending a great deal of time trying to figure out how typescript generally works and how each of these projects work, and with the help of the cm discussion board I was able to add a cell lock toggle and get both monaco / codemirror editors to lock on creation, but I can't figure out how or where to add the ability for the editors to lock when the setting is toggled.

ketch on the cm discussion forum was extremely helpful, and gave a starting point for how to update the read only state of the editor after creation, but I don't know exactly how to fit it into this one. https://discuss.codemirror.net/t/is-there-a-way-to-set-editor-to-readonly-when-you-can-only-access-the-editorview-editorstate-and-an-instance-of-editorview-in-the-new-cm/2832/2

I was thinking maybe I needed to add some method to each editorInstance and invoke it when the contendChanged is fired, but I don't really know how to do that or if that is the best method.

Please let me know if you are able to take a look at what I have so far and if you have any ideas that would complete this functionality :)

unhott

comment created time in 9 hours

issue openedevanw/esbuild

Variables storing a curried function don't get DCE when unused

const foo = a => b => {
  return [a, b]
}

const bar = foo('bar')
const baz = foo('baz') // should be dce

console.log(
  bar('hello')
)

Using the pure annotation is a work around that works, but it's quite annoying to use and other bundlers including Rollup DCE this just fine.

created time in 11 hours

issue closedcodemirror/codemirror.next

Make snippet field changing possible with the pointer

So that this feature is usable on touch devices

closed time in 12 hours

marijnh

issue commentevanw/esbuild

Set CWD programmatically

For what it’s worth I’m currently doing something like this because esbuild requires absolute paths for custom resolvers:

build.OnResolve(api.OnResolveOptions{Filter: "^%RETRO_STATIC_PATH%$"},
	func(args api.OnResolveArgs) (api.OnResolveResult, error) {
		cwd, err := os.Getwd()
		if err != nil {
			return api.OnResolveResult{}, fmt.Errorf("cannot cwd for plugin resolveRetroStaticPathPlugin; %w", err)
		}
		return api.OnResolveResult{Path: path.Join(cwd, filename)}, nil
	})
ggoodman

comment created time in 12 hours

issue openedevanw/esbuild

Provide virtual input file system to .build()

Description

Allow an initial partial filesystem seed to be provided as an input to a .build() operation.

Use-case

In order to increase the common capabilities between the WASM-based and binary-based implementations, it would be helpful to have some measure of control over the filesystem. I thought that one potential avenue for this that would avoid expensive and complicated coordination between esbuild and the controlling system might be to allow an initial FS snapshot to be seeded.

For my use-case, this would allow me to fully embrace esbuild-wasm and have platform and runtime environment portability.

created time in 12 hours

issue openedevanw/esbuild

Set CWD programmatically

Description

Support passing in a cwd option to Service#build().

Use-case

Currently, much of esbuild's path resolution and output path generation appears to depend on the working directory. Using esbuild as a component in a larger system means careful management of the working directory in order to prevent any conflicts with other components that also rely on cwd. I anecdotally observed that cwd also appears to be determined at the time the service is spawned and remains bound to that for its lifetime. That simplified working directory management, but I think esbuild could allow this to be explicit.

created time in 12 hours

issue commentcodemirror/codemirror.next

Closing bracket sometimes not removed on Chrome for Android

@marijnh Sorry to bother you again on this topic! I just updated our editor to all the latest versions (0.17.x) and implemented the closebrackets trigger using the newly exported insertBracket. That works fine now (thanks!), however removing the closing bracket doesn't seem to be working yet.

I tested some different scenarios ("|" is the cursor, brackets inserted with insertBracket):

  • Typing doSomething( yields doSomething(|). Tapping backspace at this point does not remove the closing bracket: doSomething|)
    • If the "(" bracket is typed using the actual keyboard instead of insertBracket, then backspace does remove the closing bracket
  • Typing doSomething ( (note the space) yields doSomething (|). Tapping backspace does correctly remove the closing bracket: doSomething |

This is probably related to Chrome's composing mode: when using insertBracket right after typing a word, the input is still in composing mode. I attached some raw EditorView.domEventHandlers and noticed that, in the first scenario, there is no keydown event generated for the backspace key - only a keyup. In the second scenario, there is both a keydown and keyup event for the backspace key. Seeing as the keymaps rely on keydown events (if I read that correctly), that would explain why deleteBracketPair is not triggered in the first scenario.

TuurDutoit

comment created time in 12 hours

issue commentcodemirror/codemirror.next

Test large document handling

The Chrome issue appears to be very similar to the Firefox issue—Firefox gives up at about 17M pixels, Chrome at 23M (which 1M lines happened to barely fit inside on my system, leading to my initial misplaced optimism about Chrome).

This, supposedly, is related to the way browsers use fixed-precision arithmetic for their layout computations, and is likely a relatively permanent limitation. CodeMirror could just stop believing browser layout in the large, and try to work around this somehow by defining its own pseudo-coordinate system where big content gaps are shrunk for the benefit of the browser, but I'm not sure yet whether that level of extra complexity is going to be worth it.

marijnh

comment created time in 13 hours

issue closedevanw/esbuild

provide more detail info about golang error

when I build my own plugin using esbuild plugin api, golang error like the following is not easy to debug image

closed time in 13 hours

hardfist

issue openedcodemirror/codemirror.next

Make snippet field changing possible with the pointer

So that this feature is usable on touch devices

created time in 14 hours

issue commentevanw/esbuild

[Question] about HMR support with Livereload

Wanted to follow-up: If you’re implementing esbuild in Go you may want to check out this project: https://github.com/osdevisnot/sorvor. The author implemented live-reload which is more reliable than typical techniques (e.g. chokidar, etc.). It’s very fast and I thought it was HMR at first.

Implementation is here: https://github.com/osdevisnot/sorvor/blob/main/pkg/livereload/livereload.go.

akaibukai

comment created time in 14 hours

issue commentevanw/esbuild

Just wanted to say thanks

I’m also incredibly grateful for this project. Thank you, sincerely. ❤️

sirikon

comment created time in 14 hours

issue closedcodemirror/codemirror.next

Uppercase SQL suggestions throws off fuzzy matcher

When enabling the uppercase autocomplete suggestions for SQL (upperCaseKeywords), the fuzzy matcher does not select the best match anymore. Also, the tooltip doesn't highlight the correct part of the suggestions.

Before: Screen Shot 2021-01-18 at 10 46 26

After: Screen Shot 2021-01-18 at 10 46 45

Demo: https://github.com/TuurDutoit/codemirror-suggestions (just yarn && yarn start)

closed time in 14 hours

TuurDutoit

issue commentcodemirror/codemirror.next

Uppercase SQL suggestions throws off fuzzy matcher

That exposed some issues with handling of uppercase characters by the completion matches. Attached patch (released as @codemirror/autocomplete 0.17.3) should help

TuurDutoit

comment created time in 14 hours

issue openedevanw/esbuild

[Question] JS / Go plugin interoperability

Hi Evan and the esbuild community! I’m wondering: Are esbuild JS plugins interoperable with esbuild in Go?

Specifically, if I have a plugin written in JS (necessarily, because it talks to other NPM packages), and I’m writing a tool using esbuild in Go, is there a way I can get my JS plugin to work with my esbuild tool written in Go?

So far I know how to write plugins in JS and Go, but I don’t know how (or if it’s possible) to mix-and-match them.

Thank you.

created time in 14 hours

issue openedevanw/esbuild

Wasm build doesn't work on Windows

Running a build on Windows doesn't work when using the esbuild-wasm package. It works fine when using esbuild (but we'd prefer to avoid that since it requires a postinstall script).

Repro:

git clone git@github.com:yarnpkg/berry && cd berry
git checkout mael/esbuild-2
yarn build:cli

Error:

error: Invalid path: C:\berry\packages\yarnpkg-cli\bundles\yarn.js
    at failureErrorWithLog (C:\berry\.yarn\cache\esbuild-wasm-npm-0.8.33-0589ac914f-8d0542a70c.zip\node_modules\esbuild-wasm\lib\main.js:969:15)
    at buildResponseToResult (C:\berry\.yarn\cache\esbuild-wasm-npm-0.8.33-0589ac914f-8d0542a70c.zip\node_modules\esbuild-wasm\lib\main.js:767:32)
    at C:\berry\.yarn\cache\esbuild-wasm-npm-0.8.33-0589ac914f-8d0542a70c.zip\node_modules\esbuild-wasm\lib\main.js:819:20
    at handleIncomingPacket (C:\berry\.yarn\cache\esbuild-wasm-npm-0.8.33-0589ac914f-8d0542a70c.zip\node_modules\esbuild-wasm\lib\main.js:566:9)

created time in 16 hours

issue openedcodemirror/codemirror.next

Uppercase SQL suggestions throws off fuzzy matcher

When enabling the uppercase autocomplete suggestions for SQL (upperCaseKeywords), the fuzzy matcher does not select the best match anymore. Also, the tooltip doesn't highlight the correct part of the suggestions.

Before: Screen Shot 2021-01-18 at 10 46 26

After: Screen Shot 2021-01-18 at 10 46 45

Demo: https://github.com/TuurDutoit/codemirror-suggestions (just yarn && yarn start)

created time in 18 hours

startedpedroslopez/whatsapp-web.js

started time in 18 hours

issue openedevanw/esbuild

provide more detail info about golang error

when I build my own plugin using esbuild plugin api, golang error like the following is not easy to debug image

created time in 20 hours

issue commentevanw/esbuild

Incremental build doesn't seem to help SCSS bundle

More detailed document about how to do this is now available here: https://esbuild.github.io/plugins/#caching-your-plugin.

buronnie

comment created time in a day

issue commentevanw/esbuild

How to skip transform javascript code?

You can now specify --platform=neutral to disable esbuild's defaults. There is more information here: https://esbuild.github.io/api/#platform.

hardfist

comment created time in a day

release evanw/esbuild

v0.8.33

released time in a day

created tagevanw/esbuild

tagv0.8.33

An extremely fast JavaScript bundler and minifier

created time in a day

push eventevanw/esbuild

Evan Wallace

commit sha 77563e475927a6376ee39a0a86aa5586369dd3bf

publish 0.8.33 to npm

view details

push time in a day

push eventevanw/esbuild

Evan Wallace

commit sha e8c2b62c23fd9a7405183dcf69bf6f5003bacd04

fix #674: add "--platform=neutral"

view details

push time in a day

more