Move modifyAssetLocation from build options to the config (for when path option is used)#346
Conversation
8e4eccd to
3a69bd3
Compare
|
@thoov @rwjblue , I did an attempt to fix the issue by also looking up Edit: I have tested this fix with our codebase and it does indeed work. |
rwjblue
left a comment
There was a problem hiding this comment.
Hmm. This seems important to do, thank you @robinborst95!
It seems not great that you might have to duplicate, or even that you have to decide that you want to use the config file vs ember-cli-build.js 🤔
You could (in your config) instantiate the Project (via |
@rwjblue I agree, I think it should work that either the config file or the ember-cli-build file defines the function then. I could find how to get the latter working though. I tried looking into the source code how the build works, and if I understand correctly, the The other option of having it in the config file makes a lot more sense to me at all actually, as the
I don't see how this would help this addon detect the |
@robinborst95 - Let's do it! 😸 |
47c8271 to
f053ec0
Compare
f053ec0 to
83f57d8
Compare
robinborst95
left a comment
There was a problem hiding this comment.
@rwjblue thanks for your response! I've gone ahead and moved modifyAssetLocation from the build options to the config, and also updated the Readme accordingly. I've tested this in our own app as well and I can confirm it works.
| The `forceModulesToBeLoaded` can potientally cause unindented side effects when executed. You can pass custom filter fuctions that allow | ||
| ### `forceModulesToBeLoaded` | ||
|
|
||
| The `forceModulesToBeLoaded` function can potentially cause unintended side effects when executed. You can pass custom filter fuctions that allow |
There was a problem hiding this comment.
Found some typos here while I was at it
| attachMiddleware.serverMiddleware(startOptions.app, { | ||
| configPath: this.project.configPath(), | ||
| root: this.project.root, | ||
| fileLookup: this.fileLookup, |
There was a problem hiding this comment.
Removed this as well, as this is a leftover from the 1.0 version
|
@rwjblue @kategengler any chance this PR can be reviewed soon 🙏 ? |
|
We would love to start using it, thanks @robinborst95 for working on this. @rwjblue @kategengler any chance we can get this merged? |
|
@rwjblue @kategengler can you please consider merging this? This has been open for almost a year. |
This PR adds a failing test to confirm #344. This test does basically the same as #345 (I copied the snapshot as that should be the exact same), but this test uses the
--pathoption and therefore fails.