Skip to content

feat: worker lib watch#8700

Closed
poyoho wants to merge 3 commits intovitejs:mainfrom
poyoho:worker/lib
Closed

feat: worker lib watch#8700
poyoho wants to merge 3 commits intovitejs:mainfrom
poyoho:worker/lib

Conversation

@poyoho
Copy link
Member

@poyoho poyoho commented Jun 21, 2022

Description

fix: #8172

lib mode make the worker transform https://rollupjs.org/guide/en/#shouldtransformcachedmodule

Additional context


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Read the Pull Request Guidelines and follow the Commit Convention.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

@poyoho poyoho changed the title feat: worker lib [watch](https://rollupjs.org/guide/en/#shouldtransfo… feat: worker lib watch Jun 21, 2022
@netlify
Copy link

netlify bot commented Jun 22, 2022

Deploy Preview for vite-docs-main ready!

Name Link
🔨 Latest commit 261acf2
🔍 Latest deploy log https://app.netlify.com/sites/vite-docs-main/deploys/62b327650d9cfe0008f64b39
😎 Deploy Preview https://deploy-preview-8700--vite-docs-main.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

},

shouldTransformCachedModule({ id }) {
return config.build.lib && load(id)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return config.build.lib && load(id)
return load(id)

It happens not only with lib mode.
https://stackblitz.com/edit/vitejs-vite-eciitf?file=package.json (run both build and preview)

@sapphi-red
Copy link
Member

Closing as #11919 is merged.

@sapphi-red sapphi-red closed this Mar 13, 2023
@poyoho poyoho deleted the worker/lib branch March 15, 2023 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inlined workers aren't being rebuilt while using lib mode and build --watch

2 participants