Skip to content

vite.config 中配置 base 为 相对路径 './' 构建后无法加载到wasm,报错Failed to construct 'URL': Invalid URL #68

Open
@pangyongsheng-tal

Description

vite中配置base路径为相对路径

plugins: [preset(mode), wasm(), topLevelAwait()],
base:'./',  

构建后报错

Image

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions