You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in exports it is C:\Labs\vite-rollup-plugin-legacy\legacy.js
and the id is /Labs/vite-rollup-plugin-legacy/legacy.js
Describe alternatives you've considered
I tried to use normalizedPath from vite, but there is an internal resolve in the plugin. I do not know if there is an option to avoid normalized paths in windows for the ids. I'll open another issue for include/exclude options in several plugins that could be also related.
Additional context
vite version: 2.0.0-beta.27
Operating System: Windows 10 Home, 10.0.18363 N/A Build 18363
Node version: v15.5.0
Package manager and version: yarn v1.22.10
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
@rollup/plugin-legacy doesn't work in Windows.
Here is a repro using the vanilla starter:
https://github.com/matias-capeletto/vite-rollup-plugin-legacy
Describe the solution you'd like
The problem seems to be in https://github.com/rollup/plugins/blob/master/packages/legacy/src/index.js#L15
It is comparing the resolved path with Vite normalized id, so the check fails
in
exports
it isC:\Labs\vite-rollup-plugin-legacy\legacy.js
and the
id
is/Labs/vite-rollup-plugin-legacy/legacy.js
Describe alternatives you've considered
I tried to use
normalizedPath
from vite, but there is an internal resolve in the plugin. I do not know if there is an option to avoid normalized paths in windows for the ids. I'll open another issue for include/exclude options in several plugins that could be also related.Additional context
vite version: 2.0.0-beta.27
Operating System: Windows 10 Home, 10.0.18363 N/A Build 18363
Node version: v15.5.0
Package manager and version: yarn v1.22.10
The text was updated successfully, but these errors were encountered: