Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This provides a completely bundled distribution, ready importing from CDNs like unpkg.com for use in sandboxes like Codepen. It allows this code to work: ```typescript import { create as createJSS } from 'https://unpkg.com/jss'; ``` The PR is a work-in-progress, but I'd rather start a conversation with an example than with prose. As it is, I can't get `sizeSnapshot` to work with the bundled version. I also wonder how best to handle plugins/presets. The easiest options would be to add `unpkg` entry points to each `package`, and force authors to use multiple imports: ```typescript import { create as createJSS } from 'https://unpkg.com/jss'; import createDefaultJSSPreset from 'https://unpkg.com/jss-preset-default'; ``` I wonder what the best way to produce a batteries-included bundle is. Perhaps there should be another bundle `jss-all` that exports all the other packages. Then usage would be: ```typescript import * as jssAll from 'https://unpkg.com/jss-all'; const jss = jssAll.create(jssAll.preset()); ```
- Loading branch information