Giter Site home page Giter Site logo

Comments (3)

GianlucaGuarini avatar GianlucaGuarini commented on August 20, 2024

babel5 is still supported using type: es6 for babel6 you need to use type babel more info here http://riotjs.com/guide/compiler/#ecmascript-6

from compiler.

debackerl avatar debackerl commented on August 20, 2024

@GianlucaGuarini, if you read my initial report, you can see that I'm using babel 5.8.38 + the es6 parser (es6.js), so I already did what you just asked.

Using Riot 2.2.4 + Riotify 0.1.2 my project used to work, but since I upgraded to Riot 2.4.1, it fails (using Riotify 0.1.2 or 1.0.1). I double checked, the only difference in my package.json, was version of riot, and I have already provided you with what's wrong in my first post, because babel 5.8.38 is using resolveModuleSource that way

if (resolveModuleSource) source = resolveModuleSource(source, this.opts.filename);

from compiler.

debackerl avatar debackerl commented on August 20, 2024

BTW, the bug in your code only shows up when somebody is doing an 'import' in the script part of a tag when using es6. So it's possible that many people don't see it.

from compiler.

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.