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. 😉
For the import to work from Rollup.
Without this an error is thrown:
I've also done the usual house cleaning and linting. 😉