metafloor

Results 94 comments of metafloor

Set the `binarytext` flag to `true`. By default, UTF-16 strings are assumed and converted to UTF-8.

What version of bwip-js are you using? `binarytext` is a very new option, only available in 4.1+. Also, please provide the output from this code for a failing `myText` string:...

Likely pulling in the node-js package. Does angular support the `exports` map in `package.json`?

If you look closely at the console output, you will see a euro character in `€-Zeichensatztest`. That is probably a utf-16 codepoint.

The issue is that you are not passing in a iso-8859-15 encoded string. The euro symbol is being passed in as unicode U+20AC. You need to convert it to `\xa4`...

The upstream package BWIPP only provides automatic encoding. See https://github.com/bwipp/postscriptbarcode/wiki/Code-128.

This appears to be bugs (plural) in esbuild. The bwip-js ES6 modules are already properly structured for tree shaking and are verified to work with webpack. The first bug I...

I don't believe that particular issue is the source of what we are seeing. We are not importing, then exporting namespaces. Similarly, we are not re-exporting the lower-level imports directly...

The default exports bug is now understood. If any of the exported values are unknown/untraceable, then esbuild gives up on the tree-shaking. Why an untraceable value in one module stops...

While looking over the esbuild source code, specifically `internal/resolve.go`, I saw how to structure `package.json` so it is compatible. Simply moving the `main` and `browser` fields below the `exports` map...