Skip to content

Commit

Permalink
[zero] Fix build for demo next.js app (#40854)
Browse files Browse the repository at this point in the history
  • Loading branch information
brijeshb42 committed Feb 6, 2024
1 parent 76a4281 commit 90f655a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/mui-material/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
"peerDependencies": {
"@emotion/react": "^11.5.0",
"@emotion/styled": "^11.3.0",
"@mui/zero-runtime": "workspace:^",
"@types/react": "^17.0.0 || ^18.0.0",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/zero-unplugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export const plugin = createUnplugin<PluginOptions, true>((options) => {
return tagResult;
}
if (source.endsWith('/zero-styled')) {
return `${process.env.RUNTIME_PACKAGE_NAME}/exports/${tag}`;
return require.resolve(`${process.env.RUNTIME_PACKAGE_NAME}/exports/${tag}`);
}
return null;
},
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 90f655a

Please sign in to comment.