question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

external dependencies

See original GitHub issue

Now, I have a library xx depending jQuery:

import $ from 'jquery'

...

I find #3 , so I write this externals:

externals: {
    'jquery': 'jQuery'
}

It’s great! The bundle file is small!

But, when I use my library:

var xx = require('xx')

then use webpack, the library put xx and jQuery together. I don’t know how to separate them?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
freeman29commented, Apr 1, 2017

I resolved my issue by adding the following into the config object:

target: 'node'

a good read from jlongster blog

1reaction
gen4spcommented, Mar 1, 2017

Oh, solution found modules: [path.resolve('./src'), path.join(__dirname, 'node_modules')],

Read more comments on GitHub >

github_iconTop Results From Across the Web

External Dependency - Project Management Knowledge
The external dependency is defined as the relationship between project activities and non-project activities. Such dependency involves things that are beyond ...
Read more >
External Dependencies – What They Are Plus Examples -
An external dependency is an activity in a project that the project team has no control over. The activities don't directly form a...
Read more >
What are External Dependencies in your Project? - YouTube
When you are planning your project, you need to be mindful of all sorts of things. Some, you can control. Others are external,...
Read more >
External Dependency in Project Management - Study.com
An external dependency is a particular type of project dependency. It is outside of the direct influence or control of the project team,...
Read more >
Understanding Dependencies in Project Management - Wrike
An external dependency is a requirement that a task needs from a third party before it can proceed. This dependency often takes the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found