Skip to content

Move require statements to the beginning#6

Open
Kinrany wants to merge 9 commits intoBluespess:masterfrom
Kinrany:move-require-statements
Open

Move require statements to the beginning#6
Kinrany wants to merge 9 commits intoBluespess:masterfrom
Kinrany:move-require-statements

Conversation

@Kinrany
Copy link
Copy Markdown

@Kinrany Kinrany commented Mar 27, 2019

Move all the require statements that don't have to be dynamic to the beginning of the files

@Kinrany
Copy link
Copy Markdown
Author

Kinrany commented Mar 27, 2019

Wait, client/lib/lighting.js depends on client/index.js, so that'll probably break something.

@monster860
Copy link
Copy Markdown
Member

yeah that too

@Kinrany
Copy link
Copy Markdown
Author

Kinrany commented Mar 28, 2019

I checked the cyclic dependencies with madge, there shouldn't be any now. Well, other than those fixed by do_resolve.

@Kinrany
Copy link
Copy Markdown
Author

Kinrany commented Mar 28, 2019

Ahh, no, just using mob/index.js won't work because everything is imported as mob.js, not just mob :s

@Kinrany
Copy link
Copy Markdown
Author

Kinrany commented Mar 28, 2019

Should work now. How do you test this stuff?

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