Giter Club home page Giter Club logo

Comments (5)

mathieudutour avatar mathieudutour commented on May 24, 2024

yes it's ignoring the node_modules and I think it's a good default, it's pretty rare to parse the entire node_modules, super slow.

But happy to accept an option to enable it. The interesting line is here: https://github.com/skpm/skpm/blob/master/lib/utils/webpackConfig.js#L46

from skpm.

0xpatrickdev avatar 0xpatrickdev commented on May 24, 2024

Ok, thank you for the quick response @mathieudutour. If I were to use a webpack.config.js file instead of a .babelrc file, would I be able to resolve this without a PR?

Something like include: /(node_modules\/react-native-calendars)/?

from skpm.

mathieudutour avatar mathieudutour commented on May 24, 2024

you can pass your own webpack.config.js yes. I think putting

module.exports = {module: {
  rules: [
    BABEL_CONFIG_HERE
  ]
}}

should work

from skpm.

0xpatrickdev avatar 0xpatrickdev commented on May 24, 2024

Ok cool, I am trying this but it doesn't seem to recognize jsx in my /src directory anymore:

module.exports = {
  module: {
    rules: [
      {
        test: /\.jsx$/,
        exclude: /(node_modules)/,
        include: /(node_modules\/react-native-calendars)/,
        use: {
          loader: 'babel-loader',
          options: {
            presets: ['react', 'es2015', 'stage-0'],
            plugins: ['transform-runtime', 'transform-class-properties']
          }
        }
      }
    ]
  }
};

( I know this is way outside of the scope of the project, but I am very grateful for the help ! )

from skpm.

mathieudutour avatar mathieudutour commented on May 24, 2024

I think include makes it look only there. Instead, you should adjust your exclude regex: /node_modules\/(?!(react-native-calendars))/ or something like this

from skpm.

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.