Skip to content

Commit

Permalink
refactor: correct workaround for condition names (#2083)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinbao1001 committed Apr 26, 2024
1 parent 62662ea commit 2e8652f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/compile/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default (api: IApi) => {

// support require mjs packages(eg. element-plus/es)
memo.resolve.merge({
conditionNames: ['...', 'import'],
conditionNames: ['require', 'node', 'import'],
});

const loaderBaseOpts: Partial<IMdLoaderOptions> = {
Expand Down

0 comments on commit 2e8652f

Please sign in to comment.