This repository has been archived by the owner on Oct 26, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
170ee5c
commit e75b34c
Showing
12 changed files
with
669 additions
and
493 deletions.
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,2 @@ | ||
node_modules | ||
package-lock.json |
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,27 @@ | ||
// I can't get this to work https://github.com/remorses/esbuild-plugins/issues/8 will switch to esbuild if I find a fix | ||
// type module in package.json | ||
// "@esbuild-plugins/node-globals-polyfill": "^0.1.0", | ||
// "@esbuild-plugins/node-modules-polyfill": "^0.1.1", | ||
// "esbuild": "^0.12.16", | ||
// "esbuild-plugin-node-polyfills": "^1.0.2", | ||
import NodeModulesPolyfillPlugin from '@esbuild-plugins/node-modules-polyfill' | ||
import NodeGlobalsPolyfillPlugin from '@esbuild-plugins/node-globals-polyfill' | ||
import ESBuild from 'esbuild' | ||
|
||
ESBuild.build({ | ||
plugins: [NodeModulesPolyfillPlugin.default(), | ||
NodeGlobalsPolyfillPlugin.default({ | ||
process: true, | ||
buffer: true | ||
})], | ||
entryPoints: ['index.js'], | ||
bundle: true, | ||
sourcemap: true, | ||
format: 'esm', | ||
target: ['esnext'], | ||
platform: 'browser', | ||
outfile: 'out.js', | ||
define: { | ||
global: 'globalThis' | ||
} | ||
}).catch(() => process.exit(1)) |
Large diffs are not rendered by default.
Oops, something went wrong.
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,76 @@ | ||
/*! | ||
* The buffer module from node.js, for the browser. | ||
* | ||
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> | ||
* @license MIT | ||
*/ | ||
|
||
/*! | ||
* The buffer module from node.js, for the browser. | ||
* | ||
* @author Feross Aboukhadijeh <https://feross.org> | ||
* @license MIT | ||
*/ | ||
|
||
/*! | ||
* range-parser | ||
* Copyright(c) 2012-2014 TJ Holowaychuk | ||
* Copyright(c) 2015-2016 Douglas Christopher Wilson | ||
* MIT Licensed | ||
*/ | ||
|
||
/*! bittorrent-protocol. MIT License. WebTorrent LLC <https://webtorrent.io/opensource> */ | ||
|
||
/*! blob-to-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
||
/*! cache-chunk-store. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
||
/*! create-torrent. MIT License. WebTorrent LLC <https://webtorrent.io/opensource> */ | ||
|
||
/*! https://mths.be/punycode v1.3.2 by @mathias */ | ||
|
||
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
||
/*! immediate-chunk-store. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
||
/*! lt_donthave. MIT License. WebTorrent LLC <https://webtorrent.io/opensource> */ | ||
|
||
/*! magnet-uri. MIT License. WebTorrent LLC <https://webtorrent.io/opensource> */ | ||
|
||
/*! mediasource. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
||
/*! multistream. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
||
/*! parse-torrent. MIT License. WebTorrent LLC <https://webtorrent.io/opensource> */ | ||
|
||
/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
||
/*! render-media. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
||
/*! run-parallel-limit. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
||
/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
||
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
||
/*! simple-concat. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
||
/*! simple-get. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
||
/*! simple-peer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
||
/*! simple-websocket. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
||
/*! stream-to-blob-url. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
||
/*! stream-to-blob. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
||
/*! stream-with-known-length-to-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
||
/*! torrent-discovery. MIT License. WebTorrent LLC <https://webtorrent.io/opensource> */ | ||
|
||
/*! torrent-piece. MIT License. WebTorrent LLC <https://webtorrent.io/opensource> */ | ||
|
||
/*! ut_metadata. MIT License. WebTorrent LLC <https://webtorrent.io/opensource> */ | ||
|
||
/*! webtorrent. MIT License. WebTorrent LLC <https://webtorrent.io/opensource> */ |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.