-
Notifications
You must be signed in to change notification settings - Fork 335
Alewis/custom webpack config for sites #957
Conversation
tests/build.rs
Outdated
fixture.create_file( | ||
"workers-site/webpack.worker.js", | ||
r#" | ||
module.exports = { context: __dirname, entry: "./index.js" }; |
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.
should target: webworker
in case somebody tries to copy our test suite instead of looking at our docs :)
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... O.o
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.
should we do that for all of them though? because none of the rest of our tests do this.
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.
hmm yeah we probably should... if we dont provide a custom config then it should be using it automatically
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.
should file an issue if we're doing error messaging separately and should also write up some docs for this
tested with mdx-deck workers sites project with custom webpack to not minify. can confirm this works as expected. will merge when CI passes and release with 1.7.0 |
Co-Authored-By: Sven Sauleau <[email protected]>
…d-entry Better error message when custom webpack fails
fixes #905 . need a followup PR for documenting the expected use of these, because it is not immediately obvious to someone not familiar with webpack (like me).
i also want another followup PR to warn when wranglerjs fails with
Entry module not found
, and a user has a site AND a custom webpack config, to tell them to set the context like it is here.