Giter Site home page Giter Site logo

jsnext:main usage about es6-error HOT 6 CLOSED

bjyoungblood avatar bjyoungblood commented on June 3, 2024
jsnext:main usage

from es6-error.

Comments (6)

delta62 avatar delta62 commented on June 3, 2024

Since this module is so simple, it is true that users of Rollup could use the commonjs plugin to resolve the exported class.

I think that there is still some value in providing jsnext:main - as it gains traction I think we'll start to see more tooling (and hopefully runtime support) for ES6 modules. It's also a nice convenience not to have to shim rollup configurations, even if the module is not too hard to shim.

If you're willing to run a secondary build & distribute an additional index.jsnext.js then I'd be happy to tackle getting the build set up.

from es6-error.

delta62 avatar delta62 commented on June 3, 2024

This was easier to achieve than I expected. See the PR for more info.

from es6-error.

bjyoungblood avatar bjyoungblood commented on June 3, 2024

Published v4.0.0

from es6-error.

feross avatar feross commented on June 3, 2024

Does this actually contain any breaking changes? I might be missing something, but it doesn't look like it.

from es6-error.

delta62 avatar delta62 commented on June 3, 2024

Well, it really depends on how you're using the library.

If your build process is dependent on the format of the jsnext:main files, this change could break your build since the file can no longer be parsed by Node.

On the other hand, if you're not making use of the jsnext:main functionality at all, this shouldn't have any visible effect on your project.

from es6-error.

feross avatar feross commented on June 3, 2024

@delta62 Thanks for the explanation. I'm just using main, so should be all good.

from es6-error.

Related Issues (18)

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.