Is it possible to:
import * as THREE from ‘/some / path / installed / by / npm’
Directly in web browser?
Everyone is recommending bundler like webpack.
I was hoping to load directly into the browser during development, without webpack.
I’ve also tried symlink to node_modules, but those paths seem different and THREE can’t find its sub dependencies.
I also see people using import from ‘https://unpkg/’ , but that doesn’t seem to work when you finally want to bundle it with webpack.
Ideal scenario is enabling the same ES6 import paths to work in both Webpack and Browser.