Skip to content

Stop insertRequire being passed to rjs if false#7

Open
dfrencham wants to merge 1 commit intospatools:masterfrom
dfrencham:fix-insertRequire
Open

Stop insertRequire being passed to rjs if false#7
dfrencham wants to merge 1 commit intospatools:masterfrom
dfrencham:fix-insertRequire

Conversation

@dfrencham
Copy link

If insertRequire is set to false/null/undefined or has no value set, it appends the following to the built file:

require([""]);

This is due to the _.uniq(params.insertRequire) returning an empty array if passed any value that is not an array. This results in an empty array being passed to rjs which appends a require call to the built file if any array is passed in via insertRequire.

My change allows insertRequire to be explicitly set to false. This stops the array assignment, and prevents the empty require call from being added.

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