question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Web Build (jimp.min.js) empty

See original GitHub issue

Expected Behavior

Code in jimp.min.js.

Current Behavior

The file contains only the preamble and undefined.

Failure Information (for bugs)

See https://unpkg.com/jimp@0.16.1/browser/lib/jimp.min.js.

The latest version with code in jimp.min.js was 0.12.0, see https://unpkg.com/jimp@0.12.0/browser/lib/jimp.min.js.

Steps to Reproduce

Open the file.

Context

  • Jimp Version: 0.16.1
  • Operating System: Linux
  • Node version: 14.9.0

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:4
  • Comments:6

github_iconTop GitHub Comments

1reaction
disarticulatecommented, May 30, 2021

@qwazwsx appears to be an issue with es6 codes, where uglify is stuck forever on es5.

Easiest way to route around was:

// const UglifyJS = require('uglify-js');
// npm install terser -D 
const { minify } = require("terser");
...
function minifyProcess(code) {
  console.error('Compressing...');
  return minify(code) // UglifyJS.minify(code, { warnings: true }).code;
}
...
        minifyProcess(code).then(({ code }) => {
          fs.writeFile(
            fromRoot('browser/lib/jimp.min.js'),
            licence + '\n' + code,
            err => {
              if (err) throw err;
              console.error('browserifyed jimp.min.js done.');
            }
          );
        })

https://gist.github.com/disarticulate/8ca96e37b45fdbca367a2e7079e5e211

0reactions
mkmorfesscommented, Sep 1, 2022

is this being addressed at all?

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - .empty() makes the HTML page jump/twitch - Stack ...
I am using the jQuery(".bokningar ul").empty(); to empty the specific div when new content arrives with Ajax. The only problem I get is...
Read more >
Jimp - npm
An image processing library for Node written entirely in JavaScript, with zero native dependencies. The default jimp configuration. Supported ...
Read more >
Image processing with Node and Jimp - LogRocket Blog
Jimp enables you to transform images to fit any format, style, dimension, file size, or design specification required for your web or mobile ......
Read more >
Content Jumping (and How To Avoid It) | CSS-Tricks
Few things are as annoying on the web as having the page layout ... We could measure the size of it here and...
Read more >
Top 10 Most Common Node.js Developer Mistakes - Toptal
Mistake #8: Ignoring the Advantages of Streaming APIs. Let's say we want to build a small proxy-like web server that serves responses to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found