Skip to content
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

Support ES6 imports #4

Closed
gkjohnson opened this issue Jan 31, 2018 · 2 comments
Closed

Support ES6 imports #4

gkjohnson opened this issue Jan 31, 2018 · 2 comments
Labels

Comments

@gkjohnson
Copy link
Owner

gkjohnson commented Jan 31, 2018

Provide an es6 import and UMD variant

@gkjohnson
Copy link
Owner Author

gkjohnson commented Aug 29, 2018

Use Parcel / Rollup to convert import to UMD

Edit --

Parcel may not work the way I want it to. Plan for now is to:

  • convert the URDFLoader to a module that imports import * as THREE from 'three', which will require building to use.
  • use Rollup to convert the file to a umd import that defines URDFLoader globally if just used as a script the way it does now.
  • continue to use the umd module in the example file and use webpack to build
  • the web components will only work with the umd module for now (will convert them in a future version)
  • add a rollup watch command to the start script so it rebuilds the umd file.

@gkjohnson
Copy link
Owner Author

Closed via #80

#81 covers other possible work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant