I am trying to export and import objects in the browser using ES6 modules.
I have tried
import { options } from 'options';
but I get the error Uncaught SyntaxError: Unexpected token import
.
Then I tried transpiling it, but now I receive the error Uncaught ReferenceError: require is not defined
.
Is it not possible to use modules in the browser?