-
Notifications
You must be signed in to change notification settings - Fork 8
Check for deprecated rollupOptions.preserveModules #5
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
Comments
So the problem is that you want to use preserveModules with this plugin? |
That would be great, but I read that this might be more complicated and definitely is another issue/feature request. I just opened this because if it leads to unexpected behaviour, it might be good to show the warning in both cases. I can create a pull request if you want me to. |
well, i got it, i'll appreciate if you could make a PR |
Oh I realized that I misunderstood the issue, i just thought you want to use preserveMoudle with this plugin😂
Now I know, what did you say is that you use preserveModules and cssCodeSplit independently, and you compared it with my plugin and choose the latter😄 |
Yes. But nevertheless, if your plugin would work with preserveModules it would be ideal for my use case. I wonder if it is just a vite issue that viteMetaData is empty when preserveModules is true. |
I dived into the vite's implementation and found vite collect the associations among the chunks by itself,I don't think of it as a bug. Maybe we need to implement these logic by ourselves like vite. But for now I think preserveModules is not necessary for us, indeed, the users who use your library usually don't care about how your dist directory structure looks like. |
It is possible to bypass this security check if the deprecated option
rollupOptions.preserveModules
is used.The text was updated successfully, but these errors were encountered: