Giter VIP home page Giter VIP logo

Comments (4)

rachidio avatar rachidio commented on June 25, 2024 1

First part is resolved :)

@gitbrent what about?

Why don't replace Jquery by a more specific library such as axios, lodash, etc...?

from sprestlib.

Dragnucs avatar Dragnucs commented on June 25, 2024

Simply importing a module wont bring jQuery even if the module depends on it. You still need to explicitly import it like so:

const $ = require('jquery')
// Or
import jQuery from 'jquery'

Or, you can shim the module using ProvidePlugin so it is present everywhere. This way is probably better suited for jQuery because it would allow you to map both $ and jQuery to the same instance of jQuery.

from sprestlib.

Dragnucs avatar Dragnucs commented on June 25, 2024

Replacing jQuery infavor of axios is a good decision.

Maybe we should make a PR for this, shouldn't we @ra6hi9?

from sprestlib.

gitbrent avatar gitbrent commented on June 25, 2024

Hi Guys,

@ra6hi9: the package.json file lists "jquery-node" and the library calls var $ = require("jquery-node");, so I don't know why you'd be having this issue with webpack. Wouldn't it use produce a product similar to node?

@Dragnucs: i'm working to move the UI functions to a separate library, so jQuery shouldn't need to be around long. I'd rather have no dependencies. :)

from sprestlib.

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.