[BUG] watch mode for code conventions #605
Labels
In discussion
Needs more info
Topic: AOT
Topic: Tooling
Topic: v1
Issues related to v1 backwards compatibility
Projects
Milestone
馃悰 Bug Report
Aurelia 2 moved conventions from runtime to compile time. It simplified many things, but introduced a hard-to-resolve issue in development watch mode.
馃 Expected Behavior
For conventional view,
foo.js
(orfoo.ts
) compiled result depends on existence offoo.html
.For conventional style,
foo.html
compiled result depends on existence offoo.css
(or sass/scss/less/styl file).In dev watch mode, we expect re-compilation on what ever needed.
馃槸 Current Behavior
But in reality, when user creates
foo.js
, then createsfoo.html
, the second creation would not trigger a re-compiling onfoo.js
. User has to touchfoo.js
again in order to re-compile it.The story is same for
foo.html
andfoo.css
pair.In comparison, Aurelia v1 doesn't have this issue, because the js/html pair is handled at runtime, not compile time. (FYI, Aurelia v1 doesn't support the convention of html/css pair)
馃拋 Possible Solution
Not sure what can be done. Probably need to customise all bundlers' watch mode.
Suggestions are welcome.
馃敠 Context
馃捇 Code Sample
馃實 Your Environment
Update: side note, #842, we might have jest cache issue similar to this one.
The text was updated successfully, but these errors were encountered: