Replies: 2 comments 1 reply
-
As I mentioned in your PR (#2168 (comment)), it's intentional that the |
Beta Was this translation helpful? Give feedback.
-
@kentcdodds's message about this in #2168 (comment)
|
Beta Was this translation helpful? Give feedback.
-
Currently (v1.2.2), the Remix compiler uses esbuild for both the browser and server compilers.
Depending on the values of
serverModuleFormat
andserverBuildTarget
specified in remix.config.js, you can slightly control the configuration of esbuild, but you cannot change the configuration flexibly such as adding plugins.Next.js uses webpack, and it is possible to change webpack settings from next.config.js. Custom Webpack Config
The webpack function takes the original configuration value as the first argument and the context (server/client decision, webpack version information, etc.) as the second argument, and the configuration value can be overridden through the function.
Remix should also provide a function in remix.config.js that can override the esbuild configuration values, just like Next.js.
For example, something like this.
If there is a lot of support for this proposal, I would like to start contributing this.
Please let me know what you think. Also, if you have similar issues and discussions, please let me know in the comments.
Beta Was this translation helpful? Give feedback.
All reactions