Build modification aimed to fix multiple instances of three #563
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
Can it be referenced to an Issue? If so what is the issue # ?
#504
How can we test it?
Run build and import
three.js/build/ar-threex-location-only.js
. I made a package of this fork to test this out and seems to work fine.Summary
threex-location-only
output mode tomodule
to fix multiple instances of threejs error when importing boththree
and thethreex-location-only
build
andbuild:dev
scripts to usewebpack
instead of./node_modules/.bin/webpack
. It was producing an error in my machine and I guess others. It should work in every machine with justwebpack
.Does this PR introduce a breaking change?
This will limit the
threex-location-only
build to be used only as a module. I think, if needed, more than one build can be made, one with the previous configuration UMD . I don't expect this to be merged as is, there probably is a better solution.Please TEST your PR before proposing it. Specify here what device you have used for tests, version of OS and version of Browser
OS: Windows 10
Browser: Chrome V.116.0.5845.141