@dxos/esbuild-plugins 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/LICENSE +8 -0
  2. package/dist/src/fix-graceful-fs-plugin.d.ts +6 -0
  3. package/dist/src/fix-graceful-fs-plugin.d.ts.map +1 -0
  4. package/dist/src/fix-graceful-fs-plugin.js +28 -0
  5. package/dist/src/fix-graceful-fs-plugin.js.map +1 -0
  6. package/dist/src/fix-memdown-plugin.d.ts +6 -0
  7. package/dist/src/fix-memdown-plugin.d.ts.map +1 -0
  8. package/dist/src/fix-memdown-plugin.js +21 -0
  9. package/dist/src/fix-memdown-plugin.js.map +1 -0
  10. package/dist/src/index.d.ts +5 -0
  11. package/dist/src/index.d.ts.map +1 -0
  12. package/dist/src/index.js +24 -0
  13. package/dist/src/index.js.map +1 -0
  14. package/dist/src/node-globals-polyfill-plugin.d.ts +6 -0
  15. package/dist/src/node-globals-polyfill-plugin.d.ts.map +1 -0
  16. package/dist/src/node-globals-polyfill-plugin.js +28 -0
  17. package/dist/src/node-globals-polyfill-plugin.js.map +1 -0
  18. package/dist/src/node-modules-plugin.d.ts +6 -0
  19. package/dist/src/node-modules-plugin.d.ts.map +1 -0
  20. package/dist/src/node-modules-plugin.js +86 -0
  21. package/dist/src/node-modules-plugin.js.map +1 -0
  22. package/package.json +25 -0
  23. package/polyfills/Buffer.js +2169 -0
  24. package/polyfills/crypto.js +7 -0
  25. package/polyfills/empty-module-stub.js +4 -0
  26. package/polyfills/module.js +5 -0
  27. package/polyfills/process.js +261 -0
  28. package/project.json +32 -0
  29. package/src/fix-graceful-fs-plugin.ts +27 -0
  30. package/src/fix-memdown-plugin.ts +19 -0
  31. package/src/index.ts +8 -0
  32. package/src/node-globals-polyfill-plugin.ts +25 -0
  33. package/src/node-modules-plugin.ts +84 -0
  34. package/tsconfig.json +14 -0
package/LICENSE ADDED
@@ -0,0 +1,8 @@
1
+ MIT License
2
+ Copyright (c) 2022 DXOS
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5
+
6
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,6 @@
1
+ import type { Plugin } from 'esbuild';
2
+ /**
3
+ * Replace graceful-fs with an empty module when bundling for browser.
4
+ */
5
+ export declare const FixGracefulFsPlugin: () => Plugin;
6
+ //# sourceMappingURL=fix-graceful-fs-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fix-graceful-fs-plugin.d.ts","sourceRoot":"","sources":["../../src/fix-graceful-fs-plugin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,mBAAmB,QAAO,MAiBrC,CAAC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2021 DXOS.org
4
+ //
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.FixGracefulFsPlugin = void 0;
7
+ /**
8
+ * Replace graceful-fs with an empty module when bundling for browser.
9
+ */
10
+ const FixGracefulFsPlugin = () => ({
11
+ name: 'fix-graceful-fs-plugin',
12
+ setup: ({ onResolve, onLoad }) => {
13
+ onResolve({ filter: /^graceful-fs$/ }, (arg) => {
14
+ return {
15
+ path: 'graceful-fs',
16
+ namespace: 'fix-graceful-fs-plugin'
17
+ };
18
+ });
19
+ onLoad({ filter: /^graceful-fs$/, namespace: 'fix-graceful-fs-plugin' }, async (args) => {
20
+ return {
21
+ contents: 'module.exports = {};',
22
+ loader: 'js'
23
+ };
24
+ });
25
+ }
26
+ });
27
+ exports.FixGracefulFsPlugin = FixGracefulFsPlugin;
28
+ //# sourceMappingURL=fix-graceful-fs-plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fix-graceful-fs-plugin.js","sourceRoot":"","sources":["../../src/fix-graceful-fs-plugin.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAIF;;GAEG;AACI,MAAM,mBAAmB,GAAG,GAAW,EAAE,CAAC,CAAC;IAChD,IAAI,EAAE,wBAAwB;IAC9B,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE;QAC/B,SAAS,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,EAAE,CAAC,GAAG,EAAE,EAAE;YAC7C,OAAO;gBACL,IAAI,EAAE,aAAa;gBACnB,SAAS,EAAE,wBAAwB;aACpC,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,SAAS,EAAE,wBAAwB,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YACtF,OAAO;gBACL,QAAQ,EAAE,sBAAsB;gBAChC,MAAM,EAAE,IAAI;aACb,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC;AAjBU,QAAA,mBAAmB,uBAiB7B"}
@@ -0,0 +1,6 @@
1
+ import type { Plugin } from 'esbuild';
2
+ /**
3
+ * Some odd path resolution in memdown package.
4
+ */
5
+ export declare const FixMemdownPlugin: () => Plugin;
6
+ //# sourceMappingURL=fix-memdown-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fix-memdown-plugin.d.ts","sourceRoot":"","sources":["../../src/fix-memdown-plugin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO,MASlC,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2021 DXOS.org
4
+ //
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.FixMemdownPlugin = void 0;
7
+ /**
8
+ * Some odd path resolution in memdown package.
9
+ */
10
+ const FixMemdownPlugin = () => ({
11
+ name: 'fix-memdown-plugin',
12
+ setup: ({ onResolve }) => {
13
+ onResolve({ filter: /^immediate$/ }, (arg) => {
14
+ return {
15
+ path: require.resolve(arg.path, { paths: [arg.resolveDir] })
16
+ };
17
+ });
18
+ }
19
+ });
20
+ exports.FixMemdownPlugin = FixMemdownPlugin;
21
+ //# sourceMappingURL=fix-memdown-plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fix-memdown-plugin.js","sourceRoot":"","sources":["../../src/fix-memdown-plugin.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAIF;;GAEG;AACI,MAAM,gBAAgB,GAAG,GAAW,EAAE,CAAC,CAAC;IAC7C,IAAI,EAAE,oBAAoB;IAC1B,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;QACvB,SAAS,CAAC,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,CAAC,GAAG,EAAE,EAAE;YAC3C,OAAO;gBACL,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC;aAC7D,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC;AATU,QAAA,gBAAgB,oBAS1B"}
@@ -0,0 +1,5 @@
1
+ export * from './fix-graceful-fs-plugin';
2
+ export * from './fix-memdown-plugin';
3
+ export * from './node-globals-polyfill-plugin';
4
+ export * from './node-modules-plugin';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2021 DXOS.org
4
+ //
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
17
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18
+ };
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ __exportStar(require("./fix-graceful-fs-plugin"), exports);
21
+ __exportStar(require("./fix-memdown-plugin"), exports);
22
+ __exportStar(require("./node-globals-polyfill-plugin"), exports);
23
+ __exportStar(require("./node-modules-plugin"), exports);
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;AAEF,2DAAyC;AACzC,uDAAqC;AACrC,iEAA+C;AAC/C,wDAAsC"}
@@ -0,0 +1,6 @@
1
+ import type { Plugin } from 'esbuild';
2
+ /**
3
+ * Injects node globals such as `Buffer` or `process`.
4
+ */
5
+ export declare const NodeGlobalsPolyfillPlugin: () => Plugin;
6
+ //# sourceMappingURL=node-globals-polyfill-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-globals-polyfill-plugin.d.ts","sourceRoot":"","sources":["../../src/node-globals-polyfill-plugin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAGtC;;GAEG;AACH,eAAO,MAAM,yBAAyB,QAAO,MAc3C,CAAC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2021 DXOS.org
4
+ //
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.NodeGlobalsPolyfillPlugin = void 0;
7
+ const path_1 = require("path");
8
+ /**
9
+ * Injects node globals such as `Buffer` or `process`.
10
+ */
11
+ const NodeGlobalsPolyfillPlugin = () => ({
12
+ name: 'node-globals-polyfill',
13
+ setup: ({ initialOptions }) => {
14
+ const polyfills = [
15
+ // TODO: Use `buffer` module from NPM.
16
+ (0, path_1.resolve)(__dirname, '../../polyfills/process.js'),
17
+ (0, path_1.resolve)(__dirname, '../../polyfills/Buffer.js')
18
+ ];
19
+ if (initialOptions.inject) {
20
+ initialOptions.inject.push(...polyfills);
21
+ }
22
+ else {
23
+ initialOptions.inject = [...polyfills];
24
+ }
25
+ }
26
+ });
27
+ exports.NodeGlobalsPolyfillPlugin = NodeGlobalsPolyfillPlugin;
28
+ //# sourceMappingURL=node-globals-polyfill-plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-globals-polyfill-plugin.js","sourceRoot":"","sources":["../../src/node-globals-polyfill-plugin.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAGF,+BAA+B;AAE/B;;GAEG;AACI,MAAM,yBAAyB,GAAG,GAAW,EAAE,CAAC,CAAC;IACtD,IAAI,EAAE,uBAAuB;IAC7B,KAAK,EAAE,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE;QAC5B,MAAM,SAAS,GAAG;YAChB,sCAAsC;YACtC,IAAA,cAAO,EAAC,SAAS,EAAE,4BAA4B,CAAC;YAChD,IAAA,cAAO,EAAC,SAAS,EAAE,2BAA2B,CAAC;SAChD,CAAC;QACF,IAAI,cAAc,CAAC,MAAM,EAAE;YACzB,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;SAC1C;aAAM;YACL,cAAc,CAAC,MAAM,GAAG,CAAC,GAAG,SAAS,CAAC,CAAC;SACxC;IACH,CAAC;CACF,CAAC,CAAC;AAdU,QAAA,yBAAyB,6BAcnC"}
@@ -0,0 +1,6 @@
1
+ import type { Plugin } from 'esbuild';
2
+ /**
3
+ * Adds polyfills for node's built-in modules.
4
+ */
5
+ export declare const NodeModulesPlugin: () => Plugin;
6
+ //# sourceMappingURL=node-modules-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-modules-plugin.d.ts","sourceRoot":"","sources":["../../src/node-modules-plugin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAO,MA0EnC,CAAC"}
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2021 DXOS.org
4
+ //
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.NodeModulesPlugin = void 0;
7
+ /**
8
+ * Adds polyfills for node's built-in modules.
9
+ */
10
+ const NodeModulesPlugin = () => ({
11
+ name: 'node-modules-plugin',
12
+ setup: ({ onResolve }) => {
13
+ onResolve({ filter: /^(node:)?assert$/ }, (arg) => {
14
+ return {
15
+ path: require.resolve('assert/') // Appending slash makes node resolve the installed package from node_modules.
16
+ };
17
+ });
18
+ onResolve({ filter: /^(node:)?buffer$/ }, (arg) => {
19
+ return {
20
+ path: require.resolve('../../polyfills/Buffer.js')
21
+ };
22
+ });
23
+ onResolve({ filter: /^(node:)?domain$/ }, (arg) => {
24
+ return {
25
+ path: require.resolve('domain-browser')
26
+ };
27
+ });
28
+ onResolve({ filter: /^(node:)?stream$/ }, (arg) => {
29
+ return {
30
+ path: require.resolve('readable-stream')
31
+ };
32
+ });
33
+ onResolve({ filter: /^(node:)?path$/ }, (arg) => {
34
+ return {
35
+ path: require.resolve('path-browserify')
36
+ };
37
+ });
38
+ onResolve({ filter: /^(node:)?events$/ }, (arg) => {
39
+ return {
40
+ path: require.resolve('events/')
41
+ };
42
+ });
43
+ onResolve({ filter: /^(node:)?util$/ }, (arg) => {
44
+ return {
45
+ path: require.resolve('util/')
46
+ };
47
+ });
48
+ onResolve({ filter: /^(node:)?http$/ }, (arg) => {
49
+ return {
50
+ path: require.resolve('../../polyfills/empty-module-stub.js')
51
+ };
52
+ });
53
+ onResolve({ filter: /^(node:)?https$/ }, (arg) => {
54
+ return {
55
+ path: require.resolve('../../polyfills/empty-module-stub.js')
56
+ };
57
+ });
58
+ onResolve({ filter: /^(node:)?module$/ }, (arg) => {
59
+ return {
60
+ path: require.resolve('../../polyfills/module.js')
61
+ };
62
+ });
63
+ onResolve({ filter: /^(node:)?crypto$/ }, (arg) => {
64
+ return {
65
+ path: require.resolve('../../polyfills/crypto.js')
66
+ };
67
+ });
68
+ onResolve({ filter: /^(node:)?debug$/ }, (arg) => {
69
+ return {
70
+ path: require.resolve('debug') // Resolves to installed debug module.
71
+ };
72
+ });
73
+ onResolve({ filter: /^(node:)?tty$/ }, (arg) => {
74
+ return {
75
+ path: require.resolve('tty-browserify')
76
+ };
77
+ });
78
+ onResolve({ filter: /^(node:)?fs$/ }, (arg) => {
79
+ return {
80
+ path: require.resolve('../../polyfills/empty-module-stub.js')
81
+ };
82
+ });
83
+ }
84
+ });
85
+ exports.NodeModulesPlugin = NodeModulesPlugin;
86
+ //# sourceMappingURL=node-modules-plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-modules-plugin.js","sourceRoot":"","sources":["../../src/node-modules-plugin.ts"],"names":[],"mappings":"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"}
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@dxos/esbuild-plugins",
3
+ "version": "0.1.14",
4
+ "homepage": "https://dxos.org",
5
+ "bugs": "https://github.com/dxos/dxos/issues",
6
+ "license": "MIT",
7
+ "author": "DXOS.org",
8
+ "main": "./dist/src/index.js",
9
+ "types": "./dist/src/index.d.ts",
10
+ "dependencies": {
11
+ "assert": "^2.0.0",
12
+ "crypto-browserify": "^3.12.0",
13
+ "debug": "^4.3.3",
14
+ "domain-browser": "^4.22.0",
15
+ "esbuild": "~0.14.1",
16
+ "events": "^3.3.0",
17
+ "path-browserify": "^1.0.1",
18
+ "readable-stream": "^3.6.0",
19
+ "tty-browserify": "~0.0.1",
20
+ "util": "^0.12.4"
21
+ },
22
+ "publishConfig": {
23
+ "access": "public"
24
+ }
25
+ }