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.

relative excludes

See original GitHub issue
- src
  - ./header.js
  - main.js <- browserify target this file - has requires ('./header.js') and require ('foo-bar')

now for browserify I explicity ask browserify to exclude ./header.js


# ./main.js

var headers = require ('./headers.js') # browserify correctly ignores, YAY ! :) 
var foo_bar = require ('foo-bar')

so lets look at foo-bar

foo-bar directory

- node_modules
   - foo-bar
     - dist
       - header.js
       - main.js <- entry file has require ('./header.js')

browserify unfortunately also ignores ./header.js in foo bar 😦

@substack - what do ?

cheers !

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
MellowMeloncommented, May 19, 2016

Browserify’s exclude attempts to deal with both paths (what you want) and the actual arguments to require (what you’re doing now). Instead of excluding ./header.js, try excluding the path to the file.

Excluding/externalizing by require argument is useful in cases where you want to prevent requiring npm modules, e.g. to create a separate bundle with third party code that won’t be changing.

0reactions
MellowMeloncommented, May 19, 2016

It does both. Check your path again.

Feel free to post the details of what path you used that didn’t work. It’s possible it’s a bug on Windows.

Read more comments on GitHub >

github_iconTop Results From Across the Web

excluded relative Definition | Law Insider
Excluded Claim means a dispute, controversy or claim that concerns (a) the validity or infringement of a patent, trademark or copyright; or (b)...
Read more >
Families That Exclude, Ostracize, or Ignore and the Harm ...
Sharing criticisms or negative observations among family members about one family member. This is often done as in confidence, prefaced with ...
Read more >
Miss Manners: I need to exclude two relatives from the family ...
Reader is planning a family get-together but doesn't want two relatives there because of past thefts and inappropriate comments.
Read more >
What Is an Excluded Driver on a Car Insurance Policy?
An excluded driver is a person in your household who has been explicitly excluded from coverage under your car insurance policy.
Read more >
Publication 501 (2022), Dependents, Standard Deduction ...
Support Test (To Be a Qualifying Relative) ... outside the United States or from the sale of your main home (even if you...
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