Error when compiled using webpack compressing options
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13.7k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
I am using webpack 4 and uglifying my code for prod build. But, I get an error for the sql.js package on the prod build only, not in dev. Basically I get this error when trying to call any sql operations such creating a table or inserting rows.

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the webpack 4 production build with compression enabled, then compare it with the working development build while exercising table creation and row insertion in sql.js. The report names no source file, test, or entry point; done means the compressed production build completes and those SQL operations work without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, sqlite, webpack
- Domain
- build-system, database
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100