Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

fix: exclude capi from pre-bundling #85

Closed
wants to merge 1 commit into from
Closed

Conversation

statictype
Copy link
Contributor

fixes #77

Vite is doing something called pre-bundling during development because it serves ESM modules to the browser and some dependencies need to be transformed

From the docs: If the dependency is small and is already valid ESM, you can exclude it and let the browser load it directly.

Excluding Capi from this optimization results in the dev server starting properly, only that there is a runtime error now:

Uncaught SyntaxError: The requested module '/node_modules/.pnpm/@deno+shim-deno-test@0.4.0/node_modules/@deno/shim-deno-test/dist/index.js?v=d5970e60' does not provide an export named 'Deno' (at _dnt.shims.ts:1:10)

@netlify
Copy link

netlify bot commented Mar 9, 2023

Deploy Preview for capi-multisig ready!

Name Link
🔨 Latest commit 78daabb
🔍 Latest deploy log https://app.netlify.com/sites/capi-multisig/deploys/6409e32f5839af0008b68c04
😎 Deploy Preview https://deploy-preview-85--capi-multisig.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.

@statictype statictype marked this pull request as draft March 9, 2023 13:46
@statictype statictype changed the title Exclude capi from pre-bundling fix: exclude capi from pre-bundling Mar 9, 2023
@statictype
Copy link
Contributor Author

fixed in #86

@statictype statictype closed this Mar 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

capi & vite dev mode: Top-level await is not available
1 participant