Skip to content

Commit

Permalink
fix: re-order yarn pnp plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
alisd23 committed Jun 26, 2022
1 parent 19b32f4 commit 54b64a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- alex-ketch
- alexuxui
- alireza-bonab
- alisd23
- alvinthen
- amorriscode
- andrelandgraf
Expand Down
5 changes: 3 additions & 2 deletions packages/remix-dev/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,9 @@ async function createBrowserBuild(
mdxPlugin(config),
browserRouteModulesPlugin(config, /\?browser$/),
emptyModulesPlugin(config, /\.server(\.[jt]sx?)?$/),
NodeModulesPolyfillPlugin(),
// Must be placed before NodeModulesPolyfillPlugin, so yarn can resolve polyfills correctly
yarnPnpPlugin(),
NodeModulesPolyfillPlugin(),
];

return esbuild.build({
Expand Down Expand Up @@ -418,8 +419,8 @@ function createServerBuild(
serverRouteModulesPlugin(config),
serverEntryModulePlugin(config),
serverAssetsManifestPlugin(assetsManifestPromiseRef),
serverBareModulesPlugin(config, options.onWarning),
yarnPnpPlugin(),
serverBareModulesPlugin(config, options.onWarning),
];

if (config.serverPlatform !== "node") {
Expand Down

0 comments on commit 54b64a6

Please sign in to comment.