Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reduce alias and allow to use esm bundles of preact #6

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

chenjiahan
Copy link
Member

@chenjiahan chenjiahan commented Oct 25, 2024

  1. Use dirname(require.resolve('preact/package.json')) to alias preact runtime modules. This change can allow users to use the ESM bundles of preact.
  2. Use /node_modules[\\/]preact[\\/]/ to exclude preact internal packages. This change can reduce rule conditions and improve build performance.

@chenjiahan chenjiahan merged commit 1cb6bec into main Oct 25, 2024
1 check passed
@chenjiahan chenjiahan deleted the reduce_alias_1025 branch October 25, 2024 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants