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

Added EC6 module handling and fixed up Blueprints #98

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

profK
Copy link

@profK profK commented Nov 25, 2023

Will load and execute scripts with the extension .mjs as EC6 modules
I hope its reasonably clean. I kept all my code to a new file except for the hook to invoke it.

This does make it a bit redundant but had the smallest impact on the original codebase.

I also made UJavaIsolate a UCLASS(BlueprintType) to expose it for creation in blueprints in UE5 and added a trivial Blueprint example

profK added 10 commits November 19, 2023 22:10
Loads simple MJS.  import needs work
Loads module code unwrapped (you cant wrap import statements they must be at the top.)
Current limitation, no argument parametres
loads initial code file, fails to load import properly
Will load and run a file with extensions ".mjs" now as an EC6 module
Added a run module node to blueprints
UJavascriptIsolate updated for UE5 to use UCLASS(BlueprintType) so it is constructable within a blueprint

Added trivial blueprint example to Content because there are none currently
slight changes in 5.3 to TargetArchitecture.  Usedto be a string. Is now an object you have to do ToString() on.
Small but significant fixes in the v8 plugin codebase for UE 5.3 build environmenht
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.

1 participant