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

worker.rollupOptions do not seem to work in lib mode #8970

Closed
7 tasks done
ivancuric opened this issue Jul 7, 2022 · 2 comments
Closed
7 tasks done

worker.rollupOptions do not seem to work in lib mode #8970

ivancuric opened this issue Jul 7, 2022 · 2 comments

Comments

@ivancuric
Copy link

ivancuric commented Jul 7, 2022

Describe the bug

It seems that no options in worker.rollupOptions seem to work.

I have tried to rename the worker asset output name without any success. Repro sample is linked and can be tested by running npm run build.

Reproduction

https://stackblitz.com/edit/vitejs-vite-yfkqxs?file=vite.config.ts&terminal=dev

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (4) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 16.14.2 - /usr/local/bin/node
    Yarn: 1.22.10 - /bin/yarn
    npm: 7.17.0 - /bin/npm
  npmPackages:
    vite: ^2.9.13 => 2.9.13

Used Package Manager

npm

Logs

No response

Validations

@ivancuric
Copy link
Author

And a follow up question: is it possible to disable Vite from creating the worker output as an asset in the first place and just compile the worker file by itself?

@sapphi-red
Copy link
Member

This is a duplicate of #7928 and fixed by #7804. Please upgrade to 3.0.0.

is it possible to disable Vite from creating the worker output as an asset in the first place and just compile the worker file by itself?

I'm not sure how you are going to compile the worker, but I think it is possible by creating a plugin with enforce: 'pre'.

@sapphi-red sapphi-red closed this as not planned Won't fix, can't repro, duplicate, stale Jul 19, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Aug 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants