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
Several fixes for the module unification feature flag #6908
Conversation
lib/broccoli/ember-app.js
Outdated
@@ -187,7 +187,8 @@ class EmberApp { | |||
let srcPath = this._resolveLocal('src'); | |||
let srcTree = existsSync(srcPath) ? new WatchedDir(srcPath) : null; | |||
|
|||
let appTree = new WatchedDir(this._resolveLocal('app')); | |||
let appPath = this._resolveLocal('app'); | |||
let appTree = existsSync(appPath) ? new WatchedDir(appPath) : null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a little worried about the potential side effects of this change since we don't have that many unit tests for the build pipeline yet and the change is not covered by the feature flag
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ya, we need to flag this, and add tests to cover these changes generally speaking.
|
This code is some of that last stuff we need to see landed in order to support MU behind feature flags. |
709a351
to
d05346c
Compare
Checking that this method was called is super bizarre.
d05346c
to
14174a2
Compare
Finally got some time to work on this, and I think its ready for another round of reviews.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding of this is very small, so I just left a nit pick.
lib/broccoli/ember-app.js
Outdated
@@ -1127,8 +1183,11 @@ class EmberApp { | |||
let config = this._configTree(); | |||
let templates = this._processedTemplatesTree(); | |||
|
|||
let srcTree = experiments.MODULE_UNIFICATION ? this._processedSrcTree() : null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps move the experiments.MODULE_UNIFICATION
check to _processedSrcTree
to make it a noop and just call it here blindly?
@mixonic @rwjblue I must be reading the code wrong? if (!experiments.MODULE_UNIFICATION) {
return null;
} and you always have to pair it with another guard |
@twokul experiments are disabled on the |
Several fixes here for the module unification flag, written mostly by @rwjblue with my very watchful supervision.
app
tree being present at all timessrc
build pipelinesrc
files to the linting systemsrc
tree is present, defer tosrc/main.js
to declare an application instead ofapp/app.js
./cc @rwjblue @Turbo87