Microbundle: Glslify

Created on 15 Dec 2018  路  2Comments  路  Source: developit/microbundle

@developit what is the best way to organize glslify loading?
There are webpack loader, browserify transform, require replacer, babel and rollup plugins. Can we use any of them for that?

question

Most helpful comment

@developit that's what parceljs does https://github.com/parcel-bundler/parcel/issues/2419
That would help so much developing webgl/regl components.

All 2 comments

Interesting question! I've not really used glslify so I'm not the most knowledgeable on this. Seems like it'd be tricky to come up with a generic solution though. Since microbundle is based on Rollup, the rollup plugin would be the easiest path, but we don't have a way to inject rollup plugins since it would expose microbundle internals and break encapsulation. That said, if everyone basically uses the same plugin, we have precedent for baking it into microbundle itself (like we did with typescript and css).

@developit that's what parceljs does https://github.com/parcel-bundler/parcel/issues/2419
That would help so much developing webgl/regl components.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

scttcper picture scttcper  路  11Comments

peter-mouland picture peter-mouland  路  12Comments

pascalduez picture pascalduez  路  12Comments

gamtiq picture gamtiq  路  28Comments

Andarist picture Andarist  路  33Comments