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

Reduce collected variables to only add relevant ones #18

Merged
merged 1 commit into from
Feb 9, 2018

Conversation

matz3
Copy link
Member

@matz3 matz3 commented Feb 8, 2018

When collecting the variables used during compilation there is a high
chance for redundancy when multiple compiled files (e.g. library themes)
are using the same base files for sharing variables.
With this change those variables will be excluded to reduce the size of
the variables / inline theming parameters.

The full set of variables is available as "allVariables" in the result
object.

When collecting the variables used during compilation there is a high
chance for redundancy when multiple compiled files (e.g. library themes)
are using the same base files for sharing variables.
With this change those variables will be excluded to reduce the size of
the variables / inline theming parameters.

The full set of variables is available as "allVariables" in the result
object.
@matz3 matz3 requested a review from devtomtom February 8, 2018 10:05
@matz3 matz3 merged commit a910ed8 into master Feb 9, 2018
@matz3 matz3 deleted the reduce-collected-variables branch February 9, 2018 11:40
matz3 added a commit that referenced this pull request Mar 23, 2018
There has been an issue with the reduced set of variables introduced
with #18. In some cases the import paths are absolute which breaks the
check with relative file paths within "getVariables".

The "mFileMappings" map always contains the correct paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants