-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Duplicate module on Windows if build.rollupOptions.input
is relative path
#15153
Labels
Comments
sapphi-red
added
windows only
p2-edge-case
Bug, but has workaround or limited in scope (priority)
labels
Nov 27, 2023
ferferga
added a commit
to jellyfin/jellyfin-vue
that referenced
this issue
Jan 1, 2024
Workaround sourced from vitejs/vite#15153 Signed-off-by: Fernando Fernández <ferferga@hotmail.com>
ferferga
added a commit
to jellyfin/jellyfin-vue
that referenced
this issue
Jan 1, 2024
Workaround sourced from vitejs/vite#15153 Signed-off-by: Fernando Fernández <ferferga@hotmail.com>
ferferga
added a commit
to jellyfin/jellyfin-vue
that referenced
this issue
Jan 1, 2024
Workaround sourced from vitejs/vite#15153 Signed-off-by: Fernando Fernández <ferferga@hotmail.com>
7 tasks
I ran it on stackblitz, i will try it locally later.
…---Original---
From: ***@***.***>
Date: Tue, Feb 27, 2024 13:09 PM
To: ***@***.***>;
Cc: "Hawtin ***@***.******@***.***>;
Subject: Re: [vitejs/vite] Duplicate module on Windows if`build.rollupOptions.input` is relative path (Issue #15153)
This only happens on Windows. Did you try it on Windows?
image.png (view on web)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Describe the bug
If
build.rollupOptions.input
is relative path, like below,the module is duplicated only on Windows. (In this example,
src/lib/example.js
is bundled twice. (This doesn't happen with rollup)The workaround is to call
path.resolve()
(e.g.path.resolve('src/lib/example.js')
.Reproduction
https://stackblitz.com/edit/rollup-repro-kizyn2?file=vite.config.js
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: