Damien Seguin
Damien Seguin
> I suspect it is because we tried using private class fields. Highly likely. The gist of it is that bundlephobia compiles your code with Webpack 4 which is using...
The error is unrelated (see https://github.com/guybedford/es-module-shims#usage). However, running the demo in FF currently throws: `Uncaught (in promise) DOMException: MediaRecorder constructor: video/x-matroska;codecs=avc1 indicates an unsupported container` so you might need to...
Yeah I bumped into that one too: https://github.com/dmnsgn/dgel/blob/9a859553b72a494e02a2df38cc750b8fcd145d7e/examples/material-phong.js#L448-L452 I haven't had much time to figure out but tried based on glsl spec https://github.com/dmnsgn/dgel/blob/228fde8bb5691e24e1a6c91333cd0596153c7045/src/core/Variable.ts#L140-L166
Looks like wgsl is also matching the std140 alignment so fixing glsl alignment should fix wgsl too here: https://www.w3.org/TR/WGSL/#alignment-and-size > Note: Each alignment value is always a power of two,...
👋 The default path is `"@webgpu/glslang/dist/web-devel/glslang.js"` and is resolved via the importmap: https://github.com/dmnsgn/dgel/blob/228fde8bb5691e24e1a6c91333cd0596153c7045/web_modules/import-map.json#L3-L4 Passing `glslangPath` to `await context.init()` 4th arg (not the prettiest api) is indeed the way to go...
Alternatively (and probably best until "module Worker" support is better), the workers should be standalone bundled eg. not contain ESM `import/export`. @alexdima is that something the new ESBuild usage could...
> ``` > import makeDebug from 'debug'; > const debug = makeDebug('foo:bar'); > debug.enabled = true; > debug('hi'); > ``` @Qix- The same doesn't seem to log anything in a...
Without libraryTarget module, it outputs `type: undefined` btw.
In principle it makes sense, you ask ESM you get ESM. But does that mean that Workers should necessarily be transformed as _module Workers_? Their execution context being different. My...
> But it is weird `self.importScripts(new URL("./foo.js", import.meta.url));`, `import.meta.url` available only in `module`, but you use `classic`... > > And versa vice if you use `module`, you can't use `importScripts`,...