Code Monkey home page Code Monkey logo

Comments (10)

rishu605 avatar rishu605 commented on July 30, 2024 1

The error message leads to this line in the code:
Screenshot from 2022-12-11 22-15-21

from babel-plugin-macros.

conartist6 avatar conartist6 commented on July 30, 2024 1

I don't know, because I don't know why it is parsing them.

from babel-plugin-macros.

conartist6 avatar conartist6 commented on July 30, 2024

It's most likely the way babel-plugin-macros loads cosmiconfig...

from babel-plugin-macros.

conartist6 avatar conartist6 commented on July 30, 2024

// Lazy load cosmiconfig since it is a relatively large bundle
require('cosmiconfig').cosmiconfigSync('babel-plugin-macros', {

from babel-plugin-macros.

conartist6 avatar conartist6 commented on July 30, 2024

Ah ok. So the warning is probably safe to ignore then right? Nothing is actually being required by this code, and the places that do call into this code probably all look like perfectly normal global.require('module-name') calls.

from babel-plugin-macros.

rishu605 avatar rishu605 commented on July 30, 2024

Looks like ignoring this warning won't cause any issues for now. Not sure though.

from babel-plugin-macros.

conartist6 avatar conartist6 commented on July 30, 2024

I'm pretty sure that ignoring it won't cause issues. The warning clearly seems to be about the ability to extract the dependency graph, which is not affected.

It does seem suspicious to me though that webpack would be parsing eslint-config-react-app. Why is a linter in the bundle?

from babel-plugin-macros.

rishu605 avatar rishu605 commented on July 30, 2024

Is there a way to prevent linting packages from being parsed while bundling through webpack!!

from babel-plugin-macros.

GuYounes avatar GuYounes commented on July 30, 2024

Any news ?

from babel-plugin-macros.

conartist6 avatar conartist6 commented on July 30, 2024

No news, unless webpack offers some kind of special comment that silences that warning?

from babel-plugin-macros.

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.