GithubHelp home page GithubHelp logo

Comments (8)

sebmck avatar sebmck commented on August 15, 2024

This is a problem relating to the output so should be reported on the main babel repo.

from babel-loader.

sebmck avatar sebmck commented on August 15, 2024

Also this isn't an issue or a bug. The use of eval is illegal in ES6 modules (they're strict mode).

from babel-loader.

AlexKVal avatar AlexKVal commented on August 15, 2024

Done.

BTW: You are fast ๐Ÿ‘

from babel-loader.

AlexKVal avatar AlexKVal commented on August 15, 2024

The problem is the project react-bootstrap is using eval() for developing mode.
react-bootstrap
With previos babel@4 version all is working OK.
It needs to upgrade dependencies, but because of that strange import compilation in new babel@5,
it is not possible for now.

May be there is another solution ? What would you suggest ?

from babel-loader.

sebmck avatar sebmck commented on August 15, 2024

The only scenario where imports aren't realiased like that is with import * as foo from "bar";. The reason they're realiased in 5.x is for live bindings.

from babel-loader.

AlexKVal avatar AlexKVal commented on August 15, 2024

I see.
In such case it needs to refactor the react-bootstrap development mode.

Thank you for your fast feedback.

from babel-loader.

AlexKVal avatar AlexKVal commented on August 15, 2024

Thank you for your help.
Your advice with import * as foo from "bar"; helped.

from babel-loader.

lss876 avatar lss876 commented on August 15, 2024

@sebmck The use of eval is illegal in ES6 modules (they're strict mode).
hi sebmck, the use of eval is illegal in ES6 or in strict mode?

from babel-loader.

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.