regl icon indicating copy to clipboard operation
regl copied to clipboard

es6 module

Open backspaces opened this issue 6 years ago • 1 comments

Could you also have an es6 module as well as your umd/iife?

You can have your npm package export both, btw, with the module: package.json property, unpkg.com handles this nicely with the ?module reference.

backspaces avatar Jun 24 '18 18:06 backspaces

This would also make it possible to use regl with snowpack.

Snowpack allows you to build code natively for the modern web i.e. with no bundle steps, sourcemaps, etc required.

Given that regl is functional and expressive, the combination could make for excellent rapid prototyping and a rapidly iterative developer experience.

This is what it currently looks like if you search pika - Snowpack's backend - for regl (https://www.pika.dev/search?q=regl):

Screenshot 2020-04-14 at 21 09 27

lukehesluke avatar Apr 14 '20 20:04 lukehesluke