lindell / lindell/JsBarcode

The size in webpack

Open
#200 8 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

The parsed size is too huge.(webpack^2.6.1)
![tim 20171107173147](https://user-images.githubusercontent.com/20217146/32486518-d638fb70-c3e1-11e7-9935-0a552ef3ea5b.png)

``` bash
# It doesn't work.
# How to import a single sub library?
import JsBarcode from 'jsbarcode/bin/barcodes/CODE128'
```

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 reported parsed-size result with webpack^2.6.1 and the import path `jsbarcode/bin/barcodes/CODE128`, using the attached screenshot as context. Trace how that entry is bundled and determine what behavior would make importing a single barcode sub-library produce the expected smaller size; done means the documented import works without the excessive parsed size.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
build-system, performance
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.