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(vite): resolve relative path in rollupOptions #2246

Merged
merged 2 commits into from
Feb 24, 2023
Merged

Conversation

agufagit
Copy link
Contributor

When i specify relative dir for rollupOptions output

rollupOptions: {
  output: [
    {
        dir: "dist/es"
     }
  ]
}

In one project with only .ts files, it resolved to "dist/es". However, in vue project, it resolved to absolute path "/home/xxx/project/dist/es".

This fix will handle absolute path postcss-plugin matching

…ollupOptions specified output dir in lib mode
@agufagit agufagit requested a review from antfu as a code owner February 24, 2023 04:34
@netlify
Copy link

netlify bot commented Feb 24, 2023

Deploy Preview for unocss ready!

Name Link
🔨 Latest commit 7c0dd77
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/63f89cf3eb6d5600086b7639
😎 Deploy Preview https://deploy-preview-2246--unocss.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@antfu antfu changed the title fix(vite): handle absolute path even if relative path is defined in rollupOptions specified output dir in lib mode fix(vite): resolve relative path in rollupOptions Feb 24, 2023
@antfu antfu merged commit a784070 into unocss:main Feb 24, 2023
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.

None yet

2 participants