-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: workaround FILE_TOO_LARGE via factor-bundle
This is a simple workaround that encourages factor-bundle to do a more even split that keeps .js files under 4MB limit.
- Loading branch information
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
'use strict' | ||
/* eslint-env browser, webextensions */ | ||
|
||
// Problem: addons-linter does not permit .js bigger than 4MB (FILE_TOO_LARGE) | ||
// Solution: this file lets us fine-tune to decide what to extract | ||
// into a shared bundle created by browserify+factor-bundle | ||
|
||
const Ipfs = require('ipfs') | ||
// const IpfsApi = require('ipfs-api') | ||
const node = new Ipfs({ start: false }) | ||
console.log('this code wont run :-)', node) | ||
// console.log('fake api', IpfsApi) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters