Git Product home page Git Product logo

Comments (3)

foxbenjaminfox avatar foxbenjaminfox commented on August 30, 2024 1

module is usable today, and packages such as Vue itself use it, so there isn't really a question about it being non-standard.

It is a bit ambiguous about whether the module is supposed to be pre-transpiled (like main is), or if it should be the uncompiled form.

On one hand, it seems very strange to have transpiled ES5 code, but with export statements (which are most definitely not ES5.) On the other, I see how that could cause problems.

I see that the esm version of Vue is pre-transpiled, so that weighs in favor of that way of doing it. It doesn't seem to have that much of a downside, so I'll release a new version which transpires the module file. That should solve your issues in IE11.

from vue-async-computed.

foxbenjaminfox avatar foxbenjaminfox commented on August 30, 2024 1

I've released v3.5.2 which transpiles also dist/vue-async-computed.esm.js (the module file.)

@mtorromeo: Yes, definitely. But I do see that it seems that other projects do transpile the file they list as module in package.json, and it does seem that some people do rely on that. It seems worthwhile to support that use case as well. It's a fairly simple change to the build step to also transpile that file.

from vue-async-computed.

mtorromeo avatar mtorromeo commented on August 30, 2024

It's used by bundler tools, so if you want you can configure your own build pipeline to transpile it with babel for example.

from vue-async-computed.

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.