This addresses a regression caused by the 19.1 upgrade.
To Reproduce:
ember serve
open Hello/Label.elm - update text from Send to New Send
open browser to dummy app
Expected
See send button w/ text New Send
Actual
See send button w/ text Send
Making any update to Main/Chat.elm and saving then results in New Send coming through.
Solve
It seems using includePaths made it so that the build output was considered a result of only the files within includePaths, when the nature of elm compilation means the build output needs to take into account changes to files outside of includePaths.
This fix opts instead to use our own mainDirs option to whitelist a set of paths for Elm compilation inclusion, so that ember/broccoli still considers all elm files to be incorporated into the output asset.
I've tested this out in our larger ember/elm project, and it works well there too.
To get this fix working in your project, make sure you remove includePaths from your ember-cli-build.js
This addresses a regression caused by the 19.1 upgrade.
To Reproduce:
ember serve
Hello/Label.elm
- update text fromSend
toNew Send
Expected
See send button w/ text
New Send
Actual
See send button w/ text
Send
Making any update to
Main/Chat.elm
and saving then results inNew Send
coming through.Solve
It seems using
includePaths
made it so that the build output was considered a result of only the files withinincludePaths
, when the nature of elm compilation means the build output needs to take into account changes to files outside ofincludePaths
.This fix opts instead to use our own
mainDirs
option to whitelist a set of paths for Elm compilation inclusion, so that ember/broccoli still considers all elm files to be incorporated into the output asset.I've tested this out in our larger ember/elm project, and it works well there too.
To get this fix working in your project, make sure you remove
includePaths
from yourember-cli-build.js