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: fix build for dynamic load postcss plugin #1292

Merged
merged 2 commits into from
Jan 2, 2021

Conversation

underfin
Copy link
Member

@underfin underfin commented Jan 2, 2021

fix #1287

@underfin
Copy link
Member Author

underfin commented Jan 2, 2021

Look like it is a weak dep shim....Why not use tsc build like v1?

@yyx990803
Copy link
Member

The rollup build also bundles most of the dependencies so npm install for the end user will be much faster.

@yyx990803 yyx990803 merged commit 00c7370 into vitejs:main Jan 2, 2021
aleclarson pushed a commit to aleclarson/vite that referenced this pull request Jan 2, 2021
fix vitejs#1287

Co-authored-by: Evan You <yyx990803@gmail.com>
@underfin underfin deleted the fix-dynamic-load-postcss-plugin branch January 3, 2021 00:01
@@ -123,8 +123,12 @@ const nodeConfig = {
replacement: `eval('require')('sugarss')`
},
'import-fresh/index.js': {
src: 'require(filePath)',
pattern: /require\(filePath\)/g,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change was unnecessary and caused #1306

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.0.0-beta.1 -> Loading PostCSS Plugin failed
2 participants