Git Product home page Git Product logo

Comments (5)

dptoot avatar dptoot commented on August 15, 2024

Apparently this package's usage has already been called out within stringify-object's issues as well

yeoman/stringify-object#36

from react-element-to-jsx-string.

bguggie avatar bguggie commented on August 15, 2024

have you tried uglify-es:
https://github.com/mishoo/UglifyJS2/tree/harmony
... supposed to handle uglifying es6+

from react-element-to-jsx-string.

dptoot avatar dptoot commented on August 15, 2024

I could perhaps use another minifier if I use the full control mode of storybook but at this time the minifier is baked in to their build target.

from react-element-to-jsx-string.

armandabric avatar armandabric commented on August 15, 2024

Hi @dptoot,

For now we do not target browser usage for this project. As you're not the first to open an issue on this subject (#90) maybe we should consider it?

@vvo What did you think about this?

In the main time, the response given on the #90 issue could apply for you

from react-element-to-jsx-string.

vvo avatar vvo commented on August 15, 2024

have you tried uglify-es:
mishoo/UglifyJS2@harmony
... supposed to handle uglifying es6+

This is the right answer to this current issue, you could maybe contribute to storybook default minifier and use uglify-es as stated here: https://github.com/mishoo/UglifyJS2#note

Other relevant links:
yeoman/stringify-object#35
storybookjs/storybook#1570
storybookjs/storybook#1668

I am sorry this happens but stringify-object may have take this decision (of not building anymore for ES5) a bit too early. OR uglifyjs may have waited too long to implement changes to support ES6.

Either way, you have solution to fix this I believe in the post you saw.

Thanks a lot for contributing here!

from react-element-to-jsx-string.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.