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

Example esbuild configuration #62

Closed
wants to merge 2 commits into from

Conversation

vprufus7
Copy link

@vprufus7 vprufus7 commented Dec 8, 2024

Example of using esbuild for the entire pack. More changes are probably needed, but npm run test should work.

  • Removed steps that copy files from node_modules into local folders.
  • The tsc part of the build still runs, but scripts are no longer transpiled into .js files in the dist/scripts folder. The noEmit config just runs the type checking without creating the files.
  • Instead, I call esbuild with penrose/paradox.ts as the entryPoint and build/scripts/paradox.js as the output file (all the javascript code for the whole pack is in this file in the standard way import { Vector3Builder } from "@minecraft/math";)

@vprufus7 vprufus7 marked this pull request as draft December 8, 2024 02:57
@Visual1mpact
Copy link
Owner

I'm going to follow up on this as soon as I get a chance. This commit has me very interested and curious. I appreciate the time you took to look into this matter based on our discussion earlier!!

@Visual1mpact
Copy link
Owner

This is useful notes to keep around here.

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

Successfully merging this pull request may close these issues.

2 participants