sql-js / sql-js/sql.js

Error when compiled using webpack compressing options

Open
#246 0 comments 0 reactions 0 assignees View on GitHub

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.
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.