dsandor / dymojs

A pure javascript library for printing labels on a Dymo Labelwriter printer from the browser or from nodejs.
129 stars 30 forks source link

Index.js isn't compiled in ES5, creating issues when building with npm #2

Open NicolaiF opened 6 years ago

NicolaiF commented 6 years ago

This framework made my life alot easier, but I came across a problem trying to build my project. It says it can't minify the package https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#npm-run-build-fails-to-minify. This is easily fixed by replacing the code in index.js with a compiled version (by using https://babeljs.io/repl/).

Don't know if dymojs is still active, but should be a quick fix by its author. In the mean time, just replace the code with a compiled version in your node_modules folder.

apenab commented 3 years ago

If you use reatc, I recommend use the react-dymo-hooks package