Code Monkey home page Code Monkey logo

Comments (6)

schnittstabil avatar schnittstabil commented on July 23, 2024 1

Sorry, I target node.js, if users want to use my modules in legacy browsers, it's up to them to transpile them. More importantly, those users know better which features they have to transpile than I do.

Btw, create-react-app extensively uses ES6+ features via Babel/Webpack, but is still unable to deal with (mature) ES6 features in dependencies. Trying to put the blame on maintainers of node.js packages is quite bizarre in my opinion.

Anyway, @glcheetham thanks for publishing your fork at npm. See also facebook/create-react-app#1125 for more workarounds.

from merge-options.

glcheetham avatar glcheetham commented on July 23, 2024

See my PR #5

from merge-options.

kisenka avatar kisenka commented on July 23, 2024

@schnittstabil could you please take a look at #5. I am really need it.

from merge-options.

glcheetham avatar glcheetham commented on July 23, 2024

@kisenka you can use my fork instead https://www.npmjs.com/package/merge-options-es5

npm i merge-options-es5

from merge-options.

gaearon avatar gaearon commented on July 23, 2024

FYI, we're starting the work to compile deps with babel-preset-env in Create React App: facebook/create-react-app#3776

Let us know if you have feedback about how this should work.

from merge-options.

robatron avatar robatron commented on July 23, 2024

@kisenka , @glcheetham , it's a bit hacky, but we just run an inline babel build on merge-options in our postinstall script:

package.json

"postinstall": 
  "babel node_modules/merge-options/index.js -o node_modules/merge-options/index.js"

.babelrc

{
  "presets": ["env"]
}

from merge-options.

Related Issues (15)

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.