regl-project / regl

👑 Functional WebGL
https://regl-project.github.io/
MIT License
5.23k stars 323 forks source link

es6 module #497

Open backspaces opened 6 years ago

backspaces commented 6 years ago

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.

lukehesluke commented 4 years ago

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