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:
- Created 7 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.