Skip to content

webpack cannot bundle the worker #38

@DanniCQ

Description

@DanniCQ

I followed the usage instruction and tried to bundle workers and wasm. But after i run "npm run build", it creates a sqlite.worker.[hash].js file and a sql-wasm.[hash].wasm in "static/media" folder. Then the error says "require is undefined". I guess the instruction only works for webpack, but I am using react-scripts build. Is there anyway I can still use sql.js-httpvfs in my project which is created by using create-react-app

Metadata

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