Coder Social home page Coder Social logo

Comments (7)

vouill avatar vouill commented on June 3, 2024 1

I am sorry for the late reply, i got very busy recently.
Babel shouldnt transpile the node_module folder libraries.

You need to change this :

module: {
    rules: [
      {
        test: /\.js$/,
        loader: 'babel-loader'
      }
    ]
}

To this :

module: {
    rules: [
      {
        test: /\.js$/,
        loader: 'babel-loader',
        exclude: /node_modules/,
      }
    ]
}

It should do the trick !

Keep me updated :)

from vue-slideout.

vouill avatar vouill commented on June 3, 2024

Hey, thanks for reporting the issue. I will look into it tomorrow, does it work if you remove the .babelrc file from the lib folder?
If not, can you try to run npm install babel-plugin-transform-runtime ?

Ill get back to you tomorrow !

from vue-slideout.

vouill avatar vouill commented on June 3, 2024

I did not manage to reproduce with webpack, can you tell more about your project setup ?

from vue-slideout.

chrisg86 avatar chrisg86 commented on June 3, 2024

Sorry for my late reply. It works if I manually remove the .babelrc file from your project root.
Concerning my webpack config, I am loading my jsfiles using babel-loader:

Extract from my webpack.config.js:

module: {
    rules: [
      {
        test: /\.js$/,
        loader: 'babel-loader'
      }
    ]
}

I'm using webpack v2.5.1. The babel versions I'm using:

"babel-core": "^6.24.1",
"babel-loader": "^7.0.0",
"babel-preset-es2015": "^6.24.1",

Anything else you require?

from vue-slideout.

vouill avatar vouill commented on June 3, 2024

Since there were no updates, i am closing this issue. If you face this issue again feel free to reopen it !

from vue-slideout.

chrisg86 avatar chrisg86 commented on June 3, 2024

Sorry for also being late. Your suggestion worked for me. Many thanks!

from vue-slideout.

vouill avatar vouill commented on June 3, 2024

Cheers 🎉

from vue-slideout.

Related Issues (16)

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.