Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Samuel Hapák
    @hleumas
    bolo treba vyupgradeovať babel na najnovšiu verziu
    krása:)
    ďakujem!
    Markéta Lisová
    @TheMarketka
    happens :) není za co!
    Samuel Hapák
    @hleumas
    @TheMarketka, @bulby97 encountered some problem with the plugin, could you please help him resolve the issue?
    Markéta Lisová
    @TheMarketka
    @hleumas @bulby97 indeed, how?
    Samuel Hapák
    @hleumas
    @bulby97 could you please describe the problem with the plugin you encountered?
    please, let us know also version of babel you are using
    Montlouis-Calixte Stéphane
    @bulby97
    Yeah of course, I got this message by atom : Babel v5.6.15 Transpiler Error Unknown plugin "extensible-destructuring »
    My .babelrc
    {
        "plugins": [ "extensible-destructuring:after" ],
        "blacklist": [ "es6.destructuring" ],
        "stage": 2, // Draft + Candidate
        "optional": [
            // Stage 1 - Proposal
            "es7.classProperties",
            "es7.decorators",
            "es7.objectRestSpread",
            // Stage 0 - Strawman
            "es7.functionBind"
        ]
    }
    Samuel Hapák
    @hleumas
    try upgrading babel to latest version
    Montlouis-Calixte Stéphane
    @bulby97
    Ok
    Samuel Hapák
    @hleumas
    and also, could you show us the result of command:
    npm ls babel-plugin-extensible-destructuring ?
    Montlouis-Calixte Stéphane
    @bulby97
    este-app@9.2.0 /Users/Stephane/Projects/vagrant-vm-vamos/www/este
    └── babel-plugin-extensible-destructuring@1.0.0
    Babel v5.8.19 Transpiler Error
    Unknown plugin "extensible-destructuring »

    And in my console, I have Uncaught TypeError: Cannot read property 'Symbol(get)' of undefined

    When trying to do like in the example :

    const map = fromJS({author: {name: {first: "John", last: "Doe"}, birthdate: "10-10-2010"}});
            const {author: {name: {first, last}, birthdate}} = map;
            console.log(first, last);
    Samuel Hapák
    @hleumas
    so, when you run
    babel example.js what is the output?
    you get transpiler error unknown plugin 'extensible-destructuring' ?
    Markéta Lisová
    @TheMarketka
    Symbol.get requires the babel polyfill
    … which should probably be explicitly stated in the readme file
    Montlouis-Calixte Stéphane
    @bulby97
    Babel polyfill ? Can you be more explicit please ?
    @hleumas I’m not using babel in CLI
    Samuel Hapák
    @hleumas
    @bulby97 ok, so let's try first, whether it works in CLI for you
    Montlouis-Calixte Stéphane
    @bulby97
    Ok I’ll test it
    Daniel Steigerwald
    @steida
    Este isn't using Babel polyfill sincw it's huge, cca 60kb gzipped.
    Last time I checked it.
    Montlouis-Calixte Stéphane
    @bulby97
    :<
    Samuel Hapák
    @hleumas
    is 60kb huge?
    I mean, we download megabytes of images
    does really 60kb matter?
    but @bulby97 , it is easy to include polyfill from cdn
    Daniel Steigerwald
    @steida
    That's good question
    No cdn! Leverage gzipping one file.
    Samuel Hapák
    @hleumas
    @steida if you split it into multiple files, you leverage cash:)
    Daniel Steigerwald
    @steida
    Chance to hit the cdn or splitted cache is surprisingly low.
    Samuel Hapák
    @hleumas
    I am talking about the case, where your app evolves and your code changes relatively often.
    For example, the project I am working on, has new release on almost daily bases.
    In such a case, it is good idea to split some large libraries away. This way, only your changed code needs to reload and the library can load from cache.
    Daniel Steigerwald
    @steida
    Agreed
    Markéta Lisová
    @TheMarketka
    Or well, we can make a version of the plugin that does not generate the Symbol.for("get")… it would be nice if that could be parameterized somehow
    Samuel Hapák
    @hleumas
    I think we should rather mention this in Readme and tell that Symbol polyfill is needed
    Montlouis-Calixte Stéphane
    @bulby97
    +1 :p
    Montlouis-Calixte Stéphane
    @bulby97
    This will emulate a full ES6 environment. This polyfill is automatically loaded when using babel-node and babel/register.
    Este is already loading babel/register so it should work, maybe I’m missing something. I got to go, I’ll try again later :)
    Markéta Lisová
    @TheMarketka
    Ano, ano, vím, další issue reported, v týdnu se na to všechno podívám.
    Markéta Lisová
    @TheMarketka
    A oboje opraveno.