oframe / ogl

Minimal WebGL Library
https://oframe.github.io/ogl/examples
3.77k stars 213 forks source link

Readme example house cleaning #130

Closed pschroen closed 2 years ago

pschroen commented 2 years ago

For the import to work from Rollup.

Without this an error is thrown:

rollup v2.68.0
src/main.js → public/bundle.js...
[!] Error: 'import' and 'export' may only appear at the top level
src/main.js (2:4)
1: {
2:     import {Renderer, Camera, Transform, Box, Program, Mesh } from 'ogl';
       ^

I've also done the usual house cleaning and linting. 😉