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

Prevent build issues when linking ember-source. #5339

Merged
merged 1 commit into from
Jan 27, 2018

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Jan 27, 2018

Prior to this, we used our ember-data's own dirname as the default baseDir for any of our custom babel plugins. This baseDir is used to traverse all JS files in all deps (recursively) and ensure that if any of them are changed, the transpilation cache is invalidated.

Once we swapped to using ember-source as an npm package this meant that we would be stating/hashing all files inside of node_modules/ember-source/**. When using npm link ember-source this leads to a JS max heap errors (because of node_modules/ember-source/tmp/** being MASSIVE).

This fixes that specific issue, by using the correct basedir for each individual plugin.

/cc @mmun

Prior to this, we used our ember-data's own dirname as the default
`baseDir` for any of our custom babel plugins. This baseDir is used to
traverse all JS files in all deps (recursively) and ensure that if any
of them are changed, the transpilation cache is invalidated.

Once we swapped to using ember-source as an npm package this meant that
we would be stating/hashing all files inside of
`node_modules/ember-source/**`. When using `npm link ember-source` this
leads to a JS max heap errors (because of
`node_modules/ember-source/tmp/**` being _MASSIVE_).

This fixes that specific issue, by using the **correct** basedir for
each individual plugin.
@rwjblue
Copy link
Member Author

rwjblue commented Jan 27, 2018

This is helping me work through and fix the CI failures, merging...

@rwjblue rwjblue merged commit aec8990 into emberjs:master Jan 27, 2018
@rwjblue rwjblue deleted the fix-linking-issues branch January 27, 2018 21:58
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.

None yet

1 participant