Bjorn Lu

Results 767 comments of Bjorn Lu

If you disable it I think it should work, that said we could probably switch to more reliable package for testing then `foobar`.

Looking back at this, perhaps the best short-term solution for now is to not prebundle any dependencies/packages that has uncompiled files that contains JS. Basically these items: https://github.com/vitejs/vite/blob/69f91a1c03a129ab324c20fddfd2a07e729add96/packages/vite/src/node/optimizer/esbuildDepPlugin.ts#L24-L31 These extensions...

To add on how snowpack/esinstall handles this, it currently bundles external files in the prebundling process as well, leading to one single bundle always. There's of course some issues with...

From some discussion lately in discord and https://github.com/sveltejs/vite-plugin-svelte/issues/125, it looks that auto excluding svelte (and probably marko, solid) libraries would be the way to go, since their compiled outputs are...

If anyone has stumbled on this and wants a workaround, exclude the dependency from optimization, e.g. `optimizeDeps.exclude: ['the-library']`. However, it could cause a side effect of #3024, if that dependency...

@ZengTianShengZ this isn't fixed yet, but you can workaround by adding the dependency to `optimizeDeps.exclude`

Tried Bun with Vite this weekend at https://github.com/bluwy/bun-vite-ts-test. Noted down some issues so far in the readme, with a patch to fix any fixable things so far. Currently stucked but...

> > * [ ] Dynamic `import()` doesn't execute file, as if a no-op. > > I'm not 100% sure what is happening in this case, but maybe it's a...

FWIW Vue doesn't trigger the binding update with `v-model` too ([Example](https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHRlbXBsYXRlPlxuICA8Zm9ybT5cbiAgICA8cD5cbiAgICAgIG5hbWU6IHt7bmFtZX19XG4gICAgPC9wPlxuICAgIDxpbnB1dCB2LW1vZGVsPVwibmFtZVwiIC8+XG4gICAgPGJ1dHRvbiB0eXBlPVwicmVzZXRcIj5cbiAgICAgIFJlc2V0XG4gICAgPC9idXR0b24+XG4gIDwvZm9ybT5cbjwvdGVtcGxhdGU+XG5cbjxzY3JpcHQgc2V0dXA+XG5pbXBvcnQgeyByZWYgfSBmcm9tICd2dWUnXG5jb25zdCBuYW1lID0gcmVmKCduYW1lJylcbjwvc2NyaXB0PiJ9)). I think it's fine that Svelte doesn't support this either, as it preserves the easier mental model of "on...