-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use dynamic imports for loading STL and Collada Loader #81
Labels
Comments
Closed
Rollup supports this, Parcel supports it, and Webpack will support it more cleanly in the next release. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#80 moved over to use es6 imports but the STL and Collada loader will always be included in a build because they are included at the top of the file. The right way to handle this is to use the dynamic import() function.
This will implies code splitting for builds and adds complications for converting to a umd format because the imported file is external.
Rollup supports the
--experimentalDynamicImport
flag so that may be worth investigating.The text was updated successfully, but these errors were encountered: