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

rollupOptions/worker.rollupOptions.output.entryFileNames is not work for monaco worker file #9024

Closed
7 tasks done
dyk98 opened this issue Jul 11, 2022 · 1 comment
Closed
7 tasks done
Labels
duplicate This issue or pull request already exists

Comments

@dyk98
Copy link

dyk98 commented Jul 11, 2022

Describe the bug

I use rollupOptions/worker.rollupOptions.output.entryFileNames for cancel hash name for all files, but its not work for worker file

export default defineConfig({
    build: {
    rollupOptions: {
      output: {
        entryFileNames: `[name]-1.js`,
        chunkFileNames: `[name].1.js`,
        assetFileNames: `[name]-1.[ext]`,
      },
    },
  },
  worker: {
    rollupOptions: {
      output: {
        entryFileNames: `[name]-2.js`,
        chunkFileNames: `[name]-2.js`,
        assetFileNames: `[name]-2.[ext]`,
      },
    },
  },
})

image

Reproduction

https://stackblitz.com/edit/vitejs-vite-jdm99f?file=package.json

System Info

System:
    OS: macOS 12.3.1
    CPU: (16) x64 Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz
    Memory: 931.38 MB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.3.1 - ~/.nvm/versions/node/v16.14.0/bin/npm
  Browsers:
    Chrome: 103.0.5060.114
    Safari: 15.4
  npmPackages:
    @vitejs/plugin-react: ^1.3.2 => 1.3.2 
    vite: ^2.9.13 => 2.9.14

Used Package Manager

yarn

Logs

No response

Validations

@sapphi-red
Copy link
Member

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

@sapphi-red sapphi-red closed this as not planned Won't fix, can't repro, duplicate, stale Jul 19, 2022
@sapphi-red sapphi-red added duplicate This issue or pull request already exists and removed pending triage labels 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.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants