dy / log

0 stars 0 forks source link

Native API package #13

Open dy opened 6 years ago

dy commented 6 years ago
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.