let window = require('window')
let Math = require('math')
...
Polyfills/provides existing API depending on the platform.
That can be used as a transform to detect global methods/constants, like gl.CONSTANT, document etc., to wrap implicit global dependencies into an explicit module include, so to share these constants across packages in resulting bundle - that should shrink regl and other components, sharing global assignments code.
Polyfills/provides existing API depending on the platform.
That can be used as a transform to detect global methods/constants, like
gl.CONSTANT
,document
etc., to wrap implicit global dependencies into an explicit module include, so to share these constants across packages in resulting bundle - that should shrink regl and other components, sharing global assignments code.