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

Bundle threejs app to ./dist/app.js #3

Closed
JorchRL opened this issue Jun 10, 2022 · 3 comments
Closed

Bundle threejs app to ./dist/app.js #3

JorchRL opened this issue Jun 10, 2022 · 3 comments
Labels
enhancement New feature or request high priority It needs to be fixed for the app to work correctly

Comments

@JorchRL
Copy link
Owner

JorchRL commented Jun 10, 2022

i need to find a way to bundle the complete Three.js app on ./src into a single "app.js" file that goes into ./dist

I'm thinking of using Deno's built-in bundler and built-in task runner for this.

@JorchRL JorchRL added the enhancement New feature or request label Jun 11, 2022
@JorchRL
Copy link
Owner Author

JorchRL commented Jun 11, 2022

See issues #5 #4 #6 they are related to this. Solving those is a prerequisite for this one.

@JorchRL
Copy link
Owner Author

JorchRL commented Jun 11, 2022

The Deno built-in bundler works but uses top level await and uses references to the Deno namespace.

Which sadly will not work for what I want. It will keep using top level await. And If I remove the deno.ns libraries from deno.json everything breaks :(


So I'll try the Bundler package for deno which seems to be a good option for what I want to do :D

@JorchRL JorchRL added the high priority It needs to be fixed for the app to work correctly label Jun 11, 2022
@JorchRL
Copy link
Owner Author

JorchRL commented Jun 11, 2022

I managed to bundle the app using esbuild. It works great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high priority It needs to be fixed for the app to work correctly
Projects
None yet
Development

No branches or pull requests

1 participant