-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Register dependency serializers #205
Conversation
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.
Nice one, thanks. Can we have someway to test the serialization behavior? Anything basic will do
src/AureliaDependenciesPlugin.ts
Outdated
@@ -21,8 +22,22 @@ class AureliaDependency extends IncludeDependency { | |||
get [dependencyImports]() { | |||
return webpack.Dependency.EXPORTS_OBJECT_REFERENCED as any; | |||
} | |||
|
|||
serialize(context: any) { |
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.
do we know the type of this context? if we do, I'd prefer that we have it here instead of any
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.
It's ObjectSerializerContext
. Unfortunately, this type is only listed but not exported in the webpack ts definition file if I see this correctly.
I added a very simple test with filesystem cache enabled. Tests in pipeline are broken, is this caused by me? "webpack" command seems to be missing in command line?
|
There's a bug when working with view-model.bind. In the below pasted scenario, "my-component" cannot be found when building from cache:
app.html
app.ts
my-component.html
my-component.ts
|
@elitastic can you list the steps to reproduce the caching issue mentioned? |
|
@elitastic thanks, I'm able to see the errors, though I'm not sure what could be the cause. Totally unfamiliar with this class of issues. Are you able to help find a fix for it? |
Issue is fixed. |
Fixes #199, I added dependency serializers, this adds support for filesystem cache in webpack 5.