@metamask/snaps-cli 6.1.1 → 6.2.0

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 (89) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/dist/{chunk-HMRC5KQO.js → chunk-2ZBAKBVW.js} +3 -3
  3. package/dist/{chunk-HXTU3FLE.js → chunk-4JEJ7WKR.js} +3 -3
  4. package/dist/{chunk-X3G2RMOM.mjs → chunk-6ABGZTV7.mjs} +2 -2
  5. package/dist/{chunk-IQASR5US.js → chunk-7H5FH7RY.js} +3 -3
  6. package/dist/{chunk-FK5MBK5X.mjs → chunk-AQSQ7YYP.mjs} +2 -2
  7. package/dist/{chunk-E5DLMFLF.mjs → chunk-BAEGXYL7.mjs} +2 -2
  8. package/dist/{chunk-6NHFRBVV.mjs → chunk-CZRGAFVI.mjs} +2 -2
  9. package/dist/{chunk-K7BAMTCB.js → chunk-H6BLS7BI.js} +5 -5
  10. package/dist/{chunk-NQUPDPTF.js → chunk-HLQEI6DV.js} +3 -3
  11. package/dist/{chunk-JBSWMUCQ.mjs → chunk-HOVEQTF3.mjs} +2 -2
  12. package/dist/{chunk-NQF6PKJG.mjs → chunk-KWHAT6UJ.mjs} +2 -2
  13. package/dist/{chunk-HQ5CYJ4A.js → chunk-MECBOP7G.js} +3 -3
  14. package/dist/{chunk-6WSQYPAK.mjs → chunk-MR5TAGOG.mjs} +2 -2
  15. package/dist/{chunk-IPQIKR4W.js → chunk-MXOKUCLH.js} +19 -19
  16. package/dist/chunk-MXOKUCLH.js.map +1 -0
  17. package/dist/{chunk-4PECTXQ6.mjs → chunk-NOBUMOYX.mjs} +2 -2
  18. package/dist/{chunk-L7OOEGTX.js → chunk-QMB2ZRWW.js} +3 -3
  19. package/dist/{chunk-4XEATCHZ.mjs → chunk-QRW2GKA3.mjs} +7 -7
  20. package/dist/chunk-QRW2GKA3.mjs.map +1 -0
  21. package/dist/{chunk-5QFM7NO5.js → chunk-RANTKN66.js} +3 -3
  22. package/dist/{chunk-QXYTF636.mjs → chunk-SK5KZWVS.mjs} +3 -3
  23. package/dist/{chunk-JEMJNDZO.js → chunk-SQXMNT7M.js} +37 -4
  24. package/dist/chunk-SQXMNT7M.js.map +1 -0
  25. package/dist/{chunk-OGGTU5W6.mjs → chunk-V6SYDSWM.mjs} +37 -4
  26. package/dist/chunk-V6SYDSWM.mjs.map +1 -0
  27. package/dist/{chunk-HNWSVD35.js → chunk-YCOC4VEP.js} +10 -10
  28. package/dist/commands/build/build.js +7 -7
  29. package/dist/commands/build/build.mjs +6 -6
  30. package/dist/commands/build/implementation.js +6 -6
  31. package/dist/commands/build/implementation.mjs +5 -5
  32. package/dist/commands/build/index.js +8 -8
  33. package/dist/commands/build/index.mjs +7 -7
  34. package/dist/commands/index.js +12 -12
  35. package/dist/commands/index.mjs +11 -11
  36. package/dist/commands/serve/index.js +4 -4
  37. package/dist/commands/serve/index.mjs +4 -4
  38. package/dist/commands/serve/serve.js +4 -4
  39. package/dist/commands/serve/serve.mjs +4 -4
  40. package/dist/commands/watch/implementation.js +6 -6
  41. package/dist/commands/watch/implementation.mjs +5 -5
  42. package/dist/commands/watch/index.js +8 -8
  43. package/dist/commands/watch/index.mjs +7 -7
  44. package/dist/commands/watch/watch.js +7 -7
  45. package/dist/commands/watch/watch.mjs +6 -6
  46. package/dist/index.js +5 -5
  47. package/dist/index.mjs +4 -4
  48. package/dist/main.js +12 -12
  49. package/dist/main.mjs +11 -11
  50. package/dist/tsconfig.build.tsbuildinfo +1 -1
  51. package/dist/types/config.d.ts +16 -16
  52. package/dist/types/webpack/utils.d.ts +33 -0
  53. package/dist/webpack/compiler.js +5 -5
  54. package/dist/webpack/compiler.mjs +4 -4
  55. package/dist/webpack/config.js +4 -4
  56. package/dist/webpack/config.mjs +3 -3
  57. package/dist/webpack/index.js +5 -5
  58. package/dist/webpack/index.mjs +4 -4
  59. package/dist/webpack/loaders/browserify.js +2 -2
  60. package/dist/webpack/loaders/browserify.mjs +1 -1
  61. package/dist/webpack/loaders/index.js +2 -2
  62. package/dist/webpack/loaders/index.mjs +1 -1
  63. package/dist/webpack/plugins.js +3 -3
  64. package/dist/webpack/plugins.mjs +2 -2
  65. package/dist/webpack/utils.js +2 -2
  66. package/dist/webpack/utils.mjs +1 -1
  67. package/package.json +3 -3
  68. package/dist/chunk-4XEATCHZ.mjs.map +0 -1
  69. package/dist/chunk-IPQIKR4W.js.map +0 -1
  70. package/dist/chunk-JEMJNDZO.js.map +0 -1
  71. package/dist/chunk-OGGTU5W6.mjs.map +0 -1
  72. /package/dist/{chunk-HMRC5KQO.js.map → chunk-2ZBAKBVW.js.map} +0 -0
  73. /package/dist/{chunk-HXTU3FLE.js.map → chunk-4JEJ7WKR.js.map} +0 -0
  74. /package/dist/{chunk-X3G2RMOM.mjs.map → chunk-6ABGZTV7.mjs.map} +0 -0
  75. /package/dist/{chunk-IQASR5US.js.map → chunk-7H5FH7RY.js.map} +0 -0
  76. /package/dist/{chunk-FK5MBK5X.mjs.map → chunk-AQSQ7YYP.mjs.map} +0 -0
  77. /package/dist/{chunk-E5DLMFLF.mjs.map → chunk-BAEGXYL7.mjs.map} +0 -0
  78. /package/dist/{chunk-6NHFRBVV.mjs.map → chunk-CZRGAFVI.mjs.map} +0 -0
  79. /package/dist/{chunk-K7BAMTCB.js.map → chunk-H6BLS7BI.js.map} +0 -0
  80. /package/dist/{chunk-NQUPDPTF.js.map → chunk-HLQEI6DV.js.map} +0 -0
  81. /package/dist/{chunk-JBSWMUCQ.mjs.map → chunk-HOVEQTF3.mjs.map} +0 -0
  82. /package/dist/{chunk-NQF6PKJG.mjs.map → chunk-KWHAT6UJ.mjs.map} +0 -0
  83. /package/dist/{chunk-HQ5CYJ4A.js.map → chunk-MECBOP7G.js.map} +0 -0
  84. /package/dist/{chunk-6WSQYPAK.mjs.map → chunk-MR5TAGOG.mjs.map} +0 -0
  85. /package/dist/{chunk-4PECTXQ6.mjs.map → chunk-NOBUMOYX.mjs.map} +0 -0
  86. /package/dist/{chunk-L7OOEGTX.js.map → chunk-QMB2ZRWW.js.map} +0 -0
  87. /package/dist/{chunk-5QFM7NO5.js.map → chunk-RANTKN66.js.map} +0 -0
  88. /package/dist/{chunk-QXYTF636.mjs.map → chunk-SK5KZWVS.mjs.map} +0 -0
  89. /package/dist/{chunk-HNWSVD35.js.map → chunk-YCOC4VEP.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [6.2.0]
10
+ ### Added
11
+ - Add support for building Snaps with JSX ([#2258](https://github.com/MetaMask/snaps/pull/2258))
12
+ - It's now possible to use JSX components from `@metamask/snaps-sdk` to build
13
+ user interfaces for Snaps.
14
+
9
15
  ## [6.1.1]
10
16
  ### Fixed
11
17
  - Disable `topLevelAwait` configuration option ([#2358](https://github.com/MetaMask/snaps/pull/2358))
@@ -151,7 +157,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
151
157
  - The version of the package no longer needs to match the version of all other
152
158
  MetaMask Snaps packages.
153
159
 
154
- [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@6.1.1...HEAD
160
+ [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@6.2.0...HEAD
161
+ [6.2.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@6.1.1...@metamask/snaps-cli@6.2.0
155
162
  [6.1.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@6.1.0...@metamask/snaps-cli@6.1.1
156
163
  [6.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@6.0.2...@metamask/snaps-cli@6.1.0
157
164
  [6.0.2]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@6.0.1...@metamask/snaps-cli@6.0.2
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkL7OOEGTXjs = require('./chunk-L7OOEGTX.js');
3
+ var _chunkQMB2ZRWWjs = require('./chunk-QMB2ZRWW.js');
4
4
 
5
5
  // src/commands/build/implementation.ts
6
6
  async function build(config, options) {
7
- const compiler = await _chunkL7OOEGTXjs.getCompiler.call(void 0, config, options);
7
+ const compiler = await _chunkQMB2ZRWWjs.getCompiler.call(void 0, config, options);
8
8
  return await new Promise((resolve, reject) => {
9
9
  compiler.run((runError) => {
10
10
  if (runError) {
@@ -25,4 +25,4 @@ async function build(config, options) {
25
25
 
26
26
 
27
27
  exports.build = build;
28
- //# sourceMappingURL=chunk-HMRC5KQO.js.map
28
+ //# sourceMappingURL=chunk-2ZBAKBVW.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkHMRC5KQOjs = require('./chunk-HMRC5KQO.js');
3
+ var _chunk2ZBAKBVWjs = require('./chunk-2ZBAKBVW.js');
4
4
 
5
5
 
6
6
  var _chunkMUYXNIONjs = require('./chunk-MUYXNION.js');
@@ -32,7 +32,7 @@ var steps = [
32
32
  {
33
33
  name: "Building the snap bundle.",
34
34
  task: async ({ config, spinner }) => {
35
- return await _chunkHMRC5KQOjs.build.call(void 0, config, { evaluate: false, spinner });
35
+ return await _chunk2ZBAKBVWjs.build.call(void 0, config, { evaluate: false, spinner });
36
36
  }
37
37
  },
38
38
  {
@@ -58,4 +58,4 @@ async function buildHandler(config) {
58
58
 
59
59
 
60
60
  exports.buildHandler = buildHandler;
61
- //# sourceMappingURL=chunk-HXTU3FLE.js.map
61
+ //# sourceMappingURL=chunk-4JEJ7WKR.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getDefaultConfiguration
3
- } from "./chunk-4XEATCHZ.mjs";
3
+ } from "./chunk-QRW2GKA3.mjs";
4
4
 
5
5
  // src/webpack/compiler.ts
6
6
  import { webpack } from "webpack";
@@ -13,4 +13,4 @@ async function getCompiler(config, options) {
13
13
  export {
14
14
  getCompiler
15
15
  };
16
- //# sourceMappingURL=chunk-X3G2RMOM.mjs.map
16
+ //# sourceMappingURL=chunk-6ABGZTV7.mjs.map
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkHXTU3FLEjs = require('./chunk-HXTU3FLE.js');
3
+ var _chunk4JEJ7WKRjs = require('./chunk-4JEJ7WKR.js');
4
4
 
5
5
 
6
6
  var _chunkS7UP2YYFjs = require('./chunk-S7UP2YYF.js');
@@ -12,11 +12,11 @@ var command = {
12
12
  builder: (yarg) => {
13
13
  yarg.option("dist", _chunkS7UP2YYFjs.builders_default.dist).option("eval", _chunkS7UP2YYFjs.builders_default.eval).option("manifest", _chunkS7UP2YYFjs.builders_default.manifest).option("outfileName", _chunkS7UP2YYFjs.builders_default.outfileName).option("sourceMaps", _chunkS7UP2YYFjs.builders_default.sourceMaps).option("src", _chunkS7UP2YYFjs.builders_default.src).option("stripComments", _chunkS7UP2YYFjs.builders_default.stripComments).option("transpilationMode", _chunkS7UP2YYFjs.builders_default.transpilationMode).option("depsToTranspile", _chunkS7UP2YYFjs.builders_default.depsToTranspile).option("writeManifest", _chunkS7UP2YYFjs.builders_default.writeManifest).implies("writeManifest", "manifest").implies("depsToTranspile", "transpilationMode");
14
14
  },
15
- handler: async (argv) => _chunkHXTU3FLEjs.buildHandler.call(void 0, argv.context.config)
15
+ handler: async (argv) => _chunk4JEJ7WKRjs.buildHandler.call(void 0, argv.context.config)
16
16
  };
17
17
  var build_default = command;
18
18
 
19
19
 
20
20
 
21
21
  exports.build_default = build_default;
22
- //# sourceMappingURL=chunk-IQASR5US.js.map
22
+ //# sourceMappingURL=chunk-7H5FH7RY.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  watchHandler
3
- } from "./chunk-6WSQYPAK.mjs";
3
+ } from "./chunk-MR5TAGOG.mjs";
4
4
  import {
5
5
  builders_default
6
6
  } from "./chunk-MR44GPM3.mjs";
@@ -21,4 +21,4 @@ var watch_default = command;
21
21
  export {
22
22
  watch_default
23
23
  };
24
- //# sourceMappingURL=chunk-FK5MBK5X.mjs.map
24
+ //# sourceMappingURL=chunk-AQSQ7YYP.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getCompiler
3
- } from "./chunk-X3G2RMOM.mjs";
3
+ } from "./chunk-6ABGZTV7.mjs";
4
4
 
5
5
  // src/commands/watch/implementation.ts
6
6
  import { basename } from "path";
@@ -32,4 +32,4 @@ async function watch(config, options) {
32
32
  export {
33
33
  watch
34
34
  };
35
- //# sourceMappingURL=chunk-E5DLMFLF.mjs.map
35
+ //# sourceMappingURL=chunk-BAEGXYL7.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getCompiler
3
- } from "./chunk-X3G2RMOM.mjs";
3
+ } from "./chunk-6ABGZTV7.mjs";
4
4
 
5
5
  // src/commands/build/implementation.ts
6
6
  async function build(config, options) {
@@ -25,4 +25,4 @@ async function build(config, options) {
25
25
  export {
26
26
  build
27
27
  };
28
- //# sourceMappingURL=chunk-6NHFRBVV.mjs.map
28
+ //# sourceMappingURL=chunk-CZRGAFVI.mjs.map
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk5QFM7NO5js = require('./chunk-5QFM7NO5.js');
3
+ var _chunkRANTKN66js = require('./chunk-RANTKN66.js');
4
4
 
5
5
 
6
- var _chunkIQASR5USjs = require('./chunk-IQASR5US.js');
6
+ var _chunk7H5FH7RYjs = require('./chunk-7H5FH7RY.js');
7
7
 
8
8
 
9
9
  var _chunkS76EZ6HYjs = require('./chunk-S76EZ6HY.js');
@@ -16,15 +16,15 @@ var _chunk6EEZHGF5js = require('./chunk-6EEZHGF5.js');
16
16
 
17
17
  // src/commands/index.ts
18
18
  var commands = [
19
- _chunkIQASR5USjs.build_default,
19
+ _chunk7H5FH7RYjs.build_default,
20
20
  _chunk6EEZHGF5js.eval_default,
21
21
  _chunkS76EZ6HYjs.manifest_default,
22
22
  _chunkU4VFMIGOjs.serve_default,
23
- _chunk5QFM7NO5js.watch_default
23
+ _chunkRANTKN66js.watch_default
24
24
  ];
25
25
  var commands_default = commands;
26
26
 
27
27
 
28
28
 
29
29
  exports.commands_default = commands_default;
30
- //# sourceMappingURL=chunk-K7BAMTCB.js.map
30
+ //# sourceMappingURL=chunk-H6BLS7BI.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkHQ5CYJ4Ajs = require('./chunk-HQ5CYJ4A.js');
3
+ var _chunkMECBOP7Gjs = require('./chunk-MECBOP7G.js');
4
4
 
5
5
 
6
6
  var _chunkYGEAZQSCjs = require('./chunk-YGEAZQSC.js');
@@ -40,7 +40,7 @@ var steps = [
40
40
  {
41
41
  name: "Building the snap bundle.",
42
42
  task: async ({ config, spinner }) => {
43
- await _chunkHQ5CYJ4Ajs.watch.call(void 0, config, { spinner });
43
+ await _chunkMECBOP7Gjs.watch.call(void 0, config, { spinner });
44
44
  }
45
45
  }
46
46
  ];
@@ -51,4 +51,4 @@ async function watchHandler(config, options) {
51
51
 
52
52
 
53
53
  exports.watchHandler = watchHandler;
54
- //# sourceMappingURL=chunk-NQUPDPTF.js.map
54
+ //# sourceMappingURL=chunk-HLQEI6DV.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  formatText,
6
6
  pluralize
7
- } from "./chunk-OGGTU5W6.mjs";
7
+ } from "./chunk-V6SYDSWM.mjs";
8
8
  import {
9
9
  getErrorMessage
10
10
  } from "./chunk-7RHK2YTB.mjs";
@@ -343,4 +343,4 @@ export {
343
343
  SnapsBuiltInResolver,
344
344
  SnapsBundleWarningsPlugin
345
345
  };
346
- //# sourceMappingURL=chunk-JBSWMUCQ.mjs.map
346
+ //# sourceMappingURL=chunk-HOVEQTF3.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildHandler
3
- } from "./chunk-4PECTXQ6.mjs";
3
+ } from "./chunk-NOBUMOYX.mjs";
4
4
  import {
5
5
  builders_default
6
6
  } from "./chunk-MR44GPM3.mjs";
@@ -19,4 +19,4 @@ var build_default = command;
19
19
  export {
20
20
  build_default
21
21
  };
22
- //# sourceMappingURL=chunk-NQF6PKJG.mjs.map
22
+ //# sourceMappingURL=chunk-KWHAT6UJ.mjs.map
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkL7OOEGTXjs = require('./chunk-L7OOEGTX.js');
3
+ var _chunkQMB2ZRWWjs = require('./chunk-QMB2ZRWW.js');
4
4
 
5
5
  // src/commands/watch/implementation.ts
6
6
  var _path = require('path');
7
7
  async function watch(config, options) {
8
- const compiler = await _chunkL7OOEGTXjs.getCompiler.call(void 0, config, {
8
+ const compiler = await _chunkQMB2ZRWWjs.getCompiler.call(void 0, config, {
9
9
  evaluate: config.evaluate,
10
10
  watch: true,
11
11
  spinner: options?.spinner
@@ -32,4 +32,4 @@ async function watch(config, options) {
32
32
 
33
33
 
34
34
  exports.watch = watch;
35
- //# sourceMappingURL=chunk-HQ5CYJ4A.js.map
35
+ //# sourceMappingURL=chunk-MECBOP7G.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  watch
3
- } from "./chunk-E5DLMFLF.mjs";
3
+ } from "./chunk-BAEGXYL7.mjs";
4
4
  import {
5
5
  getServer
6
6
  } from "./chunk-SYRWT2KT.mjs";
@@ -51,4 +51,4 @@ async function watchHandler(config, options) {
51
51
  export {
52
52
  watchHandler
53
53
  };
54
- //# sourceMappingURL=chunk-6WSQYPAK.mjs.map
54
+ //# sourceMappingURL=chunk-MR5TAGOG.mjs.map
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkHNWSVD35js = require('./chunk-HNWSVD35.js');
6
+ var _chunkYCOC4VEPjs = require('./chunk-YCOC4VEP.js');
7
7
 
8
8
 
9
9
 
@@ -12,7 +12,7 @@ var _chunkHNWSVD35js = require('./chunk-HNWSVD35.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkJEMJNDZOjs = require('./chunk-JEMJNDZO.js');
15
+ var _chunkSQXMNT7Mjs = require('./chunk-SQXMNT7M.js');
16
16
 
17
17
 
18
18
  var _chunkQHCKVO3Pjs = require('./chunk-QHCKVO3P.js');
@@ -29,7 +29,7 @@ async function getDefaultConfiguration(config, options = {
29
29
  evaluate: config.evaluate
30
30
  }) {
31
31
  const spinnerText = options.spinner?.text;
32
- const builtInResolver = config.stats.builtIns && new (0, _chunkHNWSVD35js.SnapsBuiltInResolver)(config.stats.builtIns, options.spinner);
32
+ const builtInResolver = config.stats.builtIns && new (0, _chunkYCOC4VEPjs.SnapsBuiltInResolver)(config.stats.builtIns, options.spinner);
33
33
  return {
34
34
  /**
35
35
  * The target is set to `browserslist` so that Webpack will compile the
@@ -39,7 +39,7 @@ async function getDefaultConfiguration(config, options = {
39
39
  *
40
40
  * @see https://webpack.js.org/configuration/target/
41
41
  */
42
- target: `browserslist:${_chunkJEMJNDZOjs.BROWSERSLIST_FILE}`,
42
+ target: `browserslist:${_chunkSQXMNT7Mjs.BROWSERSLIST_FILE}`,
43
43
  /**
44
44
  * The mode is set to `production` by default, so that Webpack will minify
45
45
  * and optimize the bundle.
@@ -59,7 +59,7 @@ async function getDefaultConfiguration(config, options = {
59
59
  *
60
60
  * @see https://webpack.js.org/configuration/devtool/
61
61
  */
62
- devtool: _chunkJEMJNDZOjs.getDevTool.call(void 0, config.sourceMap),
62
+ devtool: _chunkSQXMNT7Mjs.getDevTool.call(void 0, config.sourceMap),
63
63
  /**
64
64
  * The stats option controls how much information is printed to the console
65
65
  * when Webpack is running. We set it to `none` so that we can control the
@@ -137,9 +137,9 @@ async function getDefaultConfiguration(config, options = {
137
137
  module: {
138
138
  rules: [
139
139
  {
140
- test: /\.(js|mjs|cjs|ts)$/u,
140
+ test: /\.(js|jsx|mjs|cjs|ts|tsx)$/u,
141
141
  exclude: /node_modules/u,
142
- use: await _chunkJEMJNDZOjs.getDefaultLoader.call(void 0, config)
142
+ use: await _chunkSQXMNT7Mjs.getDefaultLoader.call(void 0, config)
143
143
  },
144
144
  /**
145
145
  * This allows importing modules that uses `.js` and not `.mjs` for the
@@ -168,7 +168,7 @@ async function getDefaultConfiguration(config, options = {
168
168
  test: /\.png$/u,
169
169
  type: "asset/inline",
170
170
  generator: {
171
- dataUrl: _chunkJEMJNDZOjs.getImageSVG.bind(null, "image/png")
171
+ dataUrl: _chunkSQXMNT7Mjs.getImageSVG.bind(null, "image/png")
172
172
  }
173
173
  },
174
174
  /**
@@ -178,7 +178,7 @@ async function getDefaultConfiguration(config, options = {
178
178
  test: /\.jpe?g$/u,
179
179
  type: "asset/inline",
180
180
  generator: {
181
- dataUrl: _chunkJEMJNDZOjs.getImageSVG.bind(null, "image/jpeg")
181
+ dataUrl: _chunkSQXMNT7Mjs.getImageSVG.bind(null, "image/jpeg")
182
182
  }
183
183
  },
184
184
  config.experimental.wasm && {
@@ -195,16 +195,16 @@ async function getDefaultConfiguration(config, options = {
195
195
  */
196
196
  resolve: {
197
197
  /**
198
- * The extensions to resolve. We set it to resolve `.(c|m)?js` and `.ts`
199
- * files.
198
+ * The extensions to resolve. We set it to resolve `.(c|m)?jsx?` and
199
+ * `.tsx?` files.
200
200
  */
201
- extensions: [".js", ".mjs", ".cjs", ".ts"],
201
+ extensions: [".js", ".jsx", ".mjs", ".cjs", ".ts", ".tsx"],
202
202
  /**
203
203
  * The fallback options. This tells Webpack how to handle imports that
204
204
  * aren't resolved. By default, we set Node.js built-ins to `false`, so
205
205
  * that they are ignored.
206
206
  */
207
- fallback: _chunkJEMJNDZOjs.getFallbacks.call(void 0, config.polyfills),
207
+ fallback: _chunkSQXMNT7Mjs.getFallbacks.call(void 0, config.polyfills),
208
208
  /**
209
209
  * The plugins to use. We use the {@link SnapsBuiltInResolver} to show
210
210
  * warnings about using Node.js built-ins, when no fallback is specified.
@@ -232,27 +232,27 @@ async function getDefaultConfiguration(config, options = {
232
232
  * output. It's used to show the stats in the terminal, in a format that
233
233
  * is easy to read.
234
234
  */
235
- new (0, _chunkHNWSVD35js.SnapsStatsPlugin)({ verbose: config.stats.verbose }, options.spinner),
235
+ new (0, _chunkYCOC4VEPjs.SnapsStatsPlugin)({ verbose: config.stats.verbose }, options.spinner),
236
236
  /**
237
237
  * The `DefinePlugin` is a Webpack plugin that adds static values to the
238
238
  * bundle. We use it to add the `NODE_DEBUG`, `NODE_ENV`, and `DEBUG`
239
239
  * environment variables, as well as any custom environment
240
240
  * variables (as `process.env`).
241
241
  */
242
- new (0, _webpack.DefinePlugin)(_chunkJEMJNDZOjs.getEnvironmentVariables.call(void 0, config.environment)),
242
+ new (0, _webpack.DefinePlugin)(_chunkSQXMNT7Mjs.getEnvironmentVariables.call(void 0, config.environment)),
243
243
  /**
244
244
  * The `ProgressPlugin` is a Webpack plugin that logs the progress of
245
245
  * the build. We set it to log the progress to the spinner.
246
246
  */
247
247
  new (0, _webpack.ProgressPlugin)({
248
- handler: _chunkJEMJNDZOjs.getProgressHandler.call(void 0, options.spinner, spinnerText)
248
+ handler: _chunkSQXMNT7Mjs.getProgressHandler.call(void 0, options.spinner, spinnerText)
249
249
  }),
250
250
  /**
251
251
  * The `SnapsBundleWarningPlugin` is a Webpack plugin that shows a
252
252
  * warning when the bundle is potentially incompatible with MetaMask
253
253
  * Snaps.
254
254
  */
255
- new (0, _chunkHNWSVD35js.SnapsBundleWarningsPlugin)({
255
+ new (0, _chunkYCOC4VEPjs.SnapsBundleWarningsPlugin)({
256
256
  builtInResolver,
257
257
  builtIns: Boolean(config.stats.builtIns),
258
258
  buffer: config.stats.buffer
@@ -262,7 +262,7 @@ async function getDefaultConfiguration(config, options = {
262
262
  * for changes. This is useful for rebuilding the bundle when the
263
263
  * manifest file changes.
264
264
  */
265
- options.watch && new (0, _chunkHNWSVD35js.SnapsWatchPlugin)(
265
+ options.watch && new (0, _chunkYCOC4VEPjs.SnapsWatchPlugin)(
266
266
  {
267
267
  bundle: _path.resolve.call(void 0, config.output.path, config.output.filename),
268
268
  evaluate: options.evaluate,
@@ -344,4 +344,4 @@ async function getDefaultConfiguration(config, options = {
344
344
 
345
345
 
346
346
  exports.getDefaultConfiguration = getDefaultConfiguration;
347
- //# sourceMappingURL=chunk-IPQIKR4W.js.map
347
+ //# sourceMappingURL=chunk-MXOKUCLH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/webpack/config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,wBAAwB;AAE/B,SAAS,eAAe;AACxB,OAAO,kBAAkB;AAEzB,SAAS,cAAc,gBAAgB,qBAAqB;AAwD5D,eAAsB,wBACpB,QACA,UAA0B;AAAA,EACxB,UAAU,OAAO;AACnB,GACwB;AACxB,QAAM,cAAc,QAAQ,SAAS;AACrC,QAAM,kBACJ,OAAO,MAAM,YACb,IAAI,qBAAqB,OAAO,MAAM,UAAU,QAAQ,OAAO;AAEjE,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASL,QAAQ,gBAAgB,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQzC,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAON,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQd,SAAS,WAAW,OAAO,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASpC,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOP,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAQN,OAAO,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAQrB,UAAU,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAQxB,MAAM,OAAO,OAAO;A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AAAA,MAC7B,CAAC;AAAA,IACL,EAAE,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOhB,cAAc;AAAA,MACZ,UAAU,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA,MAKxB,WAAW;AAAA,QACT,IAAI,aAAa;AAAA,UACf,UAAU;AAAA,QACZ,CAAC;AAAA,MACH;AAAA,IACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQA,aAAa;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAQX,eAAe;AAAA,IACjB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQA,aAAa;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAOX,OAAO;AAAA,IACT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQA,uBAAuB;AAAA;AAAA;AAAA;AAAA;AAAA,MAKrB,OAAO;AAAA,IACT;AAAA,EACF;AACF","sourcesContent":["import SnapsWebpackPlugin from '@metamask/snaps-webpack-plugin';\nimport type { Ora } from 'ora';\nimport { resolve } from 'path';\nimport TerserPlugin from 'terser-webpack-plugin';\nimport type { Configuration } from 'webpack';\nimport { DefinePlugin, ProgressPlugin, ProvidePlugin } from 'webpack';\n\nimport type { ProcessedWebpackConfig } from '../config';\nimport { getFunctionLoader, wasm } from './loaders';\nimport {\n SnapsBuiltInResolver,\n SnapsBundleWarningsPlugin,\n SnapsStatsPlugin,\n SnapsWatchPlugin,\n} from './plugins';\nimport {\n BROWSERSLIST_FILE,\n getDefaultLoader,\n getDevTool,\n getEnvironmentVariables,\n getFallbacks,\n getImageSVG,\n getProgressHandler,\n} from './utils';\n\nexport type WebpackOptions = {\n /**\n * Whether to watch for changes.\n */\n watch?: boolean;\n\n /**\n * Whether to evaluate the bundle. If this is set, it will override the\n * `evaluate` option in the config object.\n */\n evaluate?: boolean;\n\n /**\n * The spinner to use for logging.\n */\n spinner?: Ora;\n};\n\n/**\n * Get the default Webpack configuration. This is the configuration that will\n * be used if the user doesn't provide a custom Webpack configuration. The\n * configuration is based on the snap config.\n *\n * The default configuration includes:\n *\n * - `SWC` to transpile TypeScript and JavaScript files.\n * - `TerserPlugin` to minify the bundle.\n * - `SnapsWebpackPlugin` to validate the bundle and update the manifest.\n *\n * It can be customized through the `customizeWebpackConfig` function in the\n * snap config, but in most cases, you shouldn't need to do that.\n *\n * @param config - The processed snap Webpack config.\n * @param options - The Webpack options.\n * @returns The default Webpack configuration.\n */\nexport async function getDefaultConfiguration(\n config: ProcessedWebpackConfig,\n options: WebpackOptions = {\n evaluate: config.evaluate,\n },\n): Promise<Configuration> {\n const spinnerText = options.spinner?.text;\n const builtInResolver =\n config.stats.builtIns &&\n new SnapsBuiltInResolver(config.stats.builtIns, options.spinner);\n\n return {\n /**\n * The target is set to `browserslist` so that Webpack will compile the\n * bundle to support the browsers specified in the `.browserslistrc` file.\n * This Browserslist file contains the browsers that are supported by\n * MetaMask Snaps.\n *\n * @see https://webpack.js.org/configuration/target/\n */\n target: `browserslist:${BROWSERSLIST_FILE}`,\n\n /**\n * The mode is set to `production` by default, so that Webpack will minify\n * and optimize the bundle.\n *\n * @see https://webpack.js.org/configuration/mode/\n */\n mode: 'production',\n\n /**\n * The entry point is set to the `input` value from the config object.\n *\n * @see https://webpack.js.org/configuration/entry-context/\n */\n entry: config.input,\n\n /**\n * The devtool option controls how source maps are generated. We set it to\n * the `sourceMap` value from the config object.\n *\n * @see https://webpack.js.org/configuration/devtool/\n */\n devtool: getDevTool(config.sourceMap),\n\n /**\n * The stats option controls how much information is printed to the console\n * when Webpack is running. We set it to `none` so that we can control the\n * output ourselves.\n *\n * @see https://webpack.js.org/configuration/stats/\n */\n stats: 'none',\n\n /**\n * The output options.\n *\n * @see https://webpack.js.org/configuration/output/\n */\n output: {\n /**\n * This indicates whether Webpack should clear the output directory\n * before building. We set it to the `clean` value from the config\n * object.\n *\n * @see https://webpack.js.org/configuration/output/#outputclean\n */\n clean: config.output.clean,\n\n /**\n * The filename of the bundle. We set it to the `filename` value from\n * the config object.\n *\n * @see https://webpack.js.org/configuration/output/#outputfilename\n */\n filename: config.output.filename,\n\n /**\n * The path to the output directory. We set it to the `path` value from\n * the config object.\n *\n * @see https://webpack.js.org/configuration/output/#outputpath\n */\n path: config.output.path,\n\n /**\n * The public path of the bundle. We set it to `/` by default, so that\n * the bundle can be loaded from the root of the server.\n *\n * @see https://webpack.js.org/configuration/output/#outputpublicpath\n */\n publicPath: '/',\n\n /**\n * The library configuration. This tells Webpack how to export the\n * bundle.\n *\n * @see https://webpack.js.org/configuration/output/#outputlibrary\n */\n library: {\n /**\n * This tells Webpack to export the bundle as a CommonJS module. This\n * is necessary for MetaMask Snaps.\n *\n * @see https://webpack.js.org/configuration/output/#outputlibrarytarget\n */\n type: 'commonjs',\n },\n\n /**\n * The chunk format. This tells Webpack how to export chunks. This is\n * required because we use browserslist to target browsers, but Snaps are\n * not fully compatible with browser APIs (such as `window` and\n * `document`).\n *\n * @see https://webpack.js.org/configuration/output/#outputchunkformat\n */\n chunkFormat: 'commonjs',\n },\n\n /**\n * The module configuration. This is where we tell Webpack how to handle\n * different types of files.\n *\n * @see https://webpack.js.org/configuration/module/\n */\n module: {\n rules: [\n {\n test: /\\.(js|jsx|mjs|cjs|ts|tsx)$/u,\n exclude: /node_modules/u,\n use: await getDefaultLoader(config),\n },\n\n /**\n * This allows importing modules that uses `.js` and not `.mjs` for the\n * ES build.\n *\n * @see https://webpack.js.org/configuration/module/#resolvefullyspecified\n */\n {\n test: /\\.m?js$/u,\n resolve: {\n fullySpecified: false,\n },\n },\n\n /**\n * This allows importing `.svg` files as a string.\n */\n config.features.images && {\n test: /\\.svg$/u,\n // `asset/source` returns the source as a UTF-8 string.\n type: 'asset/source',\n },\n\n /**\n * This allows importing `.png` files as a data URL.\n */\n config.features.images && {\n test: /\\.png$/u,\n type: 'asset/inline',\n generator: {\n dataUrl: getImageSVG.bind(null, 'image/png'),\n },\n },\n\n /**\n * This allows importing `.jpe?g` files as a data URL.\n */\n config.features.images && {\n test: /\\.jpe?g$/u,\n type: 'asset/inline',\n generator: {\n dataUrl: getImageSVG.bind(null, 'image/jpeg'),\n },\n },\n\n config.experimental.wasm && {\n test: /\\.wasm$/u,\n use: getFunctionLoader(wasm, {}),\n },\n ],\n },\n\n /**\n * The resolve configuration. This tells Webpack how to resolve imports.\n * We set it to resolve `.js` and `.ts` files.\n *\n * @see https://webpack.js.org/configuration/resolve/\n */\n resolve: {\n /**\n * The extensions to resolve. We set it to resolve `.(c|m)?jsx?` and\n * `.tsx?` files.\n */\n extensions: ['.js', '.jsx', '.mjs', '.cjs', '.ts', '.tsx'],\n\n /**\n * The fallback options. This tells Webpack how to handle imports that\n * aren't resolved. By default, we set Node.js built-ins to `false`, so\n * that they are ignored.\n */\n fallback: getFallbacks(config.polyfills),\n\n /**\n * The plugins to use. We use the {@link SnapsBuiltInResolver} to show\n * warnings about using Node.js built-ins, when no fallback is specified.\n */\n plugins: [builtInResolver],\n },\n\n /**\n * The plugins to use.\n *\n * @see https://webpack.js.org/configuration/plugins/\n */\n plugins: [\n /**\n * The `SnapsWebpackPlugin` is a Webpack plugin that checks and updates\n * the manifest file, and evaluates the bundle in SES. While not strictly\n * required, it's highly recommended to use this plugin.\n */\n new SnapsWebpackPlugin({\n manifestPath: config.manifest.path,\n writeManifest: config.manifest.update,\n eval: !options.watch && options.evaluate,\n }),\n\n /**\n * The `SnapsStatsPlugin` is a Webpack plugin that handles the stats\n * output. It's used to show the stats in the terminal, in a format that\n * is easy to read.\n */\n new SnapsStatsPlugin({ verbose: config.stats.verbose }, options.spinner),\n\n /**\n * The `DefinePlugin` is a Webpack plugin that adds static values to the\n * bundle. We use it to add the `NODE_DEBUG`, `NODE_ENV`, and `DEBUG`\n * environment variables, as well as any custom environment\n * variables (as `process.env`).\n */\n new DefinePlugin(getEnvironmentVariables(config.environment)),\n\n /**\n * The `ProgressPlugin` is a Webpack plugin that logs the progress of\n * the build. We set it to log the progress to the spinner.\n */\n new ProgressPlugin({\n handler: getProgressHandler(options.spinner, spinnerText),\n }),\n\n /**\n * The `SnapsBundleWarningPlugin` is a Webpack plugin that shows a\n * warning when the bundle is potentially incompatible with MetaMask\n * Snaps.\n */\n new SnapsBundleWarningsPlugin({\n builtInResolver,\n builtIns: Boolean(config.stats.builtIns),\n buffer: config.stats.buffer,\n }),\n\n /**\n * The `WatchPlugin` is a Webpack plugin that adds extra files to watch\n * for changes. This is useful for rebuilding the bundle when the\n * manifest file changes.\n */\n options.watch &&\n new SnapsWatchPlugin(\n {\n bundle: resolve(config.output.path, config.output.filename),\n evaluate: options.evaluate,\n files: [config.manifest.path],\n },\n options.spinner,\n ),\n\n /**\n * The `ProviderPlugin` is a Webpack plugin that automatically load\n * modules instead of having to import or require them everywhere.\n */\n (config.polyfills === true ||\n (config.polyfills !== false && config.polyfills.buffer)) &&\n new ProvidePlugin({\n Buffer: ['buffer', 'Buffer'],\n }),\n ].filter(Boolean),\n\n /**\n * The optimization configuration. This tells Webpack how to optimize the\n * bundle. Most of the time, you won't need to change this, as the default\n * options set by the `mode` option are sufficient.\n */\n optimization: {\n minimize: config.output.minimize,\n\n /**\n * The minimizer to use. We set it to use the `TerserPlugin`.\n */\n minimizer: [\n new TerserPlugin({\n parallel: true,\n }),\n ],\n },\n\n /**\n * The experiments configuration. This configures which Webpack\n * experiments to enable/disable.\n *\n * @see https://webpack.js.org/configuration/experiments\n */\n experiments: {\n /**\n * Experimental support for top level await.\n *\n * This is unsupported in Snaps and therefore disabled.\n *\n * @see https://webpack.js.org/configuration/experiments/#experimentstoplevelawait\n */\n topLevelAwait: false,\n },\n\n /**\n * The performance configuration. This tells Webpack how to handle\n * performance hints.\n *\n * @see https://webpack.js.org/configuration/performance/\n */\n performance: {\n /**\n * The hints to show. We set it to `false`, so that we don't get\n * performance hints, as they are not relevant for Snaps.\n *\n * @see https://webpack.js.org/configuration/performance/#performancehints\n */\n hints: false,\n },\n\n /**\n * The infrastructure logging configuration. This tells Webpack how to\n * log messages.\n *\n * @see https://webpack.js.org/configuration/infrastructure-logging\n */\n infrastructureLogging: {\n /**\n * The level of logging to use. We set it to `none`, so that we can\n * control the output ourselves.\n */\n level: 'none',\n },\n };\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  build
3
- } from "./chunk-6NHFRBVV.mjs";
3
+ } from "./chunk-CZRGAFVI.mjs";
4
4
  import {
5
5
  evaluate
6
6
  } from "./chunk-3WWFQLH4.mjs";
@@ -58,4 +58,4 @@ async function buildHandler(config) {
58
58
  export {
59
59
  buildHandler
60
60
  };
61
- //# sourceMappingURL=chunk-4PECTXQ6.mjs.map
61
+ //# sourceMappingURL=chunk-NOBUMOYX.mjs.map
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkIPQIKR4Wjs = require('./chunk-IPQIKR4W.js');
3
+ var _chunkMXOKUCLHjs = require('./chunk-MXOKUCLH.js');
4
4
 
5
5
  // src/webpack/compiler.ts
6
6
  var _webpack = require('webpack');
7
7
  async function getCompiler(config, options) {
8
- const baseWebpackConfig = await _chunkIPQIKR4Wjs.getDefaultConfiguration.call(void 0, config, options);
8
+ const baseWebpackConfig = await _chunkMXOKUCLHjs.getDefaultConfiguration.call(void 0, config, options);
9
9
  const webpackConfig = config.customizeWebpackConfig?.(baseWebpackConfig) ?? baseWebpackConfig;
10
10
  return _webpack.webpack.call(void 0, webpackConfig);
11
11
  }
@@ -13,4 +13,4 @@ async function getCompiler(config, options) {
13
13
 
14
14
 
15
15
  exports.getCompiler = getCompiler;
16
- //# sourceMappingURL=chunk-L7OOEGTX.js.map
16
+ //# sourceMappingURL=chunk-QMB2ZRWW.js.map
@@ -3,7 +3,7 @@ import {
3
3
  SnapsBundleWarningsPlugin,
4
4
  SnapsStatsPlugin,
5
5
  SnapsWatchPlugin
6
- } from "./chunk-JBSWMUCQ.mjs";
6
+ } from "./chunk-HOVEQTF3.mjs";
7
7
  import {
8
8
  BROWSERSLIST_FILE,
9
9
  getDefaultLoader,
@@ -12,7 +12,7 @@ import {
12
12
  getFallbacks,
13
13
  getImageSVG,
14
14
  getProgressHandler
15
- } from "./chunk-OGGTU5W6.mjs";
15
+ } from "./chunk-V6SYDSWM.mjs";
16
16
  import {
17
17
  getFunctionLoader
18
18
  } from "./chunk-AZMQTZXZ.mjs";
@@ -137,7 +137,7 @@ async function getDefaultConfiguration(config, options = {
137
137
  module: {
138
138
  rules: [
139
139
  {
140
- test: /\.(js|mjs|cjs|ts)$/u,
140
+ test: /\.(js|jsx|mjs|cjs|ts|tsx)$/u,
141
141
  exclude: /node_modules/u,
142
142
  use: await getDefaultLoader(config)
143
143
  },
@@ -195,10 +195,10 @@ async function getDefaultConfiguration(config, options = {
195
195
  */
196
196
  resolve: {
197
197
  /**
198
- * The extensions to resolve. We set it to resolve `.(c|m)?js` and `.ts`
199
- * files.
198
+ * The extensions to resolve. We set it to resolve `.(c|m)?jsx?` and
199
+ * `.tsx?` files.
200
200
  */
201
- extensions: [".js", ".mjs", ".cjs", ".ts"],
201
+ extensions: [".js", ".jsx", ".mjs", ".cjs", ".ts", ".tsx"],
202
202
  /**
203
203
  * The fallback options. This tells Webpack how to handle imports that
204
204
  * aren't resolved. By default, we set Node.js built-ins to `false`, so
@@ -344,4 +344,4 @@ async function getDefaultConfiguration(config, options = {
344
344
  export {
345
345
  getDefaultConfiguration
346
346
  };
347
- //# sourceMappingURL=chunk-4XEATCHZ.mjs.map
347
+ //# sourceMappingURL=chunk-QRW2GKA3.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/webpack/config.ts"],"sourcesContent":["import SnapsWebpackPlugin from '@metamask/snaps-webpack-plugin';\nimport type { Ora } from 'ora';\nimport { resolve } from 'path';\nimport TerserPlugin from 'terser-webpack-plugin';\nimport type { Configuration } from 'webpack';\nimport { DefinePlugin, ProgressPlugin, ProvidePlugin } from 'webpack';\n\nimport type { ProcessedWebpackConfig } from '../config';\nimport { getFunctionLoader, wasm } from './loaders';\nimport {\n SnapsBuiltInResolver,\n SnapsBundleWarningsPlugin,\n SnapsStatsPlugin,\n SnapsWatchPlugin,\n} from './plugins';\nimport {\n BROWSERSLIST_FILE,\n getDefaultLoader,\n getDevTool,\n getEnvironmentVariables,\n getFallbacks,\n getImageSVG,\n getProgressHandler,\n} from './utils';\n\nexport type WebpackOptions = {\n /**\n * Whether to watch for changes.\n */\n watch?: boolean;\n\n /**\n * Whether to evaluate the bundle. If this is set, it will override the\n * `evaluate` option in the config object.\n */\n evaluate?: boolean;\n\n /**\n * The spinner to use for logging.\n */\n spinner?: Ora;\n};\n\n/**\n * Get the default Webpack configuration. This is the configuration that will\n * be used if the user doesn't provide a custom Webpack configuration. The\n * configuration is based on the snap config.\n *\n * The default configuration includes:\n *\n * - `SWC` to transpile TypeScript and JavaScript files.\n * - `TerserPlugin` to minify the bundle.\n * - `SnapsWebpackPlugin` to validate the bundle and update the manifest.\n *\n * It can be customized through the `customizeWebpackConfig` function in the\n * snap config, but in most cases, you shouldn't need to do that.\n *\n * @param config - The processed snap Webpack config.\n * @param options - The Webpack options.\n * @returns The default Webpack configuration.\n */\nexport async function getDefaultConfiguration(\n config: ProcessedWebpackConfig,\n options: WebpackOptions = {\n evaluate: config.evaluate,\n },\n): Promise<Configuration> {\n const spinnerText = options.spinner?.text;\n const builtInResolver =\n config.stats.builtIns &&\n new SnapsBuiltInResolver(config.stats.builtIns, options.spinner);\n\n return {\n /**\n * The target is set to `browserslist` so that Webpack will compile the\n * bundle to support the browsers specified in the `.browserslistrc` file.\n * This Browserslist file contains the browsers that are supported by\n * MetaMask Snaps.\n *\n * @see https://webpack.js.org/configuration/target/\n */\n target: `browserslist:${BROWSERSLIST_FILE}`,\n\n /**\n * The mode is set to `production` by default, so that Webpack will minify\n * and optimize the bundle.\n *\n * @see https://webpack.js.org/configuration/mode/\n */\n mode: 'production',\n\n /**\n * The entry point is set to the `input` value from the config object.\n *\n * @see https://webpack.js.org/configuration/entry-context/\n */\n entry: config.input,\n\n /**\n * The devtool option controls how source maps are generated. We set it to\n * the `sourceMap` value from the config object.\n *\n * @see https://webpack.js.org/configuration/devtool/\n */\n devtool: getDevTool(config.sourceMap),\n\n /**\n * The stats option controls how much information is printed to the console\n * when Webpack is running. We set it to `none` so that we can control the\n * output ourselves.\n *\n * @see https://webpack.js.org/configuration/stats/\n */\n stats: 'none',\n\n /**\n * The output options.\n *\n * @see https://webpack.js.org/configuration/output/\n */\n output: {\n /**\n * This indicates whether Webpack should clear the output directory\n * before building. We set it to the `clean` value from the config\n * object.\n *\n * @see https://webpack.js.org/configuration/output/#outputclean\n */\n clean: config.output.clean,\n\n /**\n * The filename of the bundle. We set it to the `filename` value from\n * the config object.\n *\n * @see https://webpack.js.org/configuration/output/#outputfilename\n */\n filename: config.output.filename,\n\n /**\n * The path to the output directory. We set it to the `path` value from\n * the config object.\n *\n * @see https://webpack.js.org/configuration/output/#outputpath\n */\n path: config.output.path,\n\n /**\n * The public path of the bundle. We set it to `/` by default, so that\n * the bundle can be loaded from the root of the server.\n *\n * @see https://webpack.js.org/configuration/output/#outputpublicpath\n */\n publicPath: '/',\n\n /**\n * The library configuration. This tells Webpack how to export the\n * bundle.\n *\n * @see https://webpack.js.org/configuration/output/#outputlibrary\n */\n library: {\n /**\n * This tells Webpack to export the bundle as a CommonJS module. This\n * is necessary for MetaMask Snaps.\n *\n * @see https://webpack.js.org/configuration/output/#outputlibrarytarget\n */\n type: 'commonjs',\n },\n\n /**\n * The chunk format. This tells Webpack how to export chunks. This is\n * required because we use browserslist to target browsers, but Snaps are\n * not fully compatible with browser APIs (such as `window` and\n * `document`).\n *\n * @see https://webpack.js.org/configuration/output/#outputchunkformat\n */\n chunkFormat: 'commonjs',\n },\n\n /**\n * The module configuration. This is where we tell Webpack how to handle\n * different types of files.\n *\n * @see https://webpack.js.org/configuration/module/\n */\n module: {\n rules: [\n {\n test: /\\.(js|jsx|mjs|cjs|ts|tsx)$/u,\n exclude: /node_modules/u,\n use: await getDefaultLoader(config),\n },\n\n /**\n * This allows importing modules that uses `.js` and not `.mjs` for the\n * ES build.\n *\n * @see https://webpack.js.org/configuration/module/#resolvefullyspecified\n */\n {\n test: /\\.m?js$/u,\n resolve: {\n fullySpecified: false,\n },\n },\n\n /**\n * This allows importing `.svg` files as a string.\n */\n config.features.images && {\n test: /\\.svg$/u,\n // `asset/source` returns the source as a UTF-8 string.\n type: 'asset/source',\n },\n\n /**\n * This allows importing `.png` files as a data URL.\n */\n config.features.images && {\n test: /\\.png$/u,\n type: 'asset/inline',\n generator: {\n dataUrl: getImageSVG.bind(null, 'image/png'),\n },\n },\n\n /**\n * This allows importing `.jpe?g` files as a data URL.\n */\n config.features.images && {\n test: /\\.jpe?g$/u,\n type: 'asset/inline',\n generator: {\n dataUrl: getImageSVG.bind(null, 'image/jpeg'),\n },\n },\n\n config.experimental.wasm && {\n test: /\\.wasm$/u,\n use: getFunctionLoader(wasm, {}),\n },\n ],\n },\n\n /**\n * The resolve configuration. This tells Webpack how to resolve imports.\n * We set it to resolve `.js` and `.ts` files.\n *\n * @see https://webpack.js.org/configuration/resolve/\n */\n resolve: {\n /**\n * The extensions to resolve. We set it to resolve `.(c|m)?jsx?` and\n * `.tsx?` files.\n */\n extensions: ['.js', '.jsx', '.mjs', '.cjs', '.ts', '.tsx'],\n\n /**\n * The fallback options. This tells Webpack how to handle imports that\n * aren't resolved. By default, we set Node.js built-ins to `false`, so\n * that they are ignored.\n */\n fallback: getFallbacks(config.polyfills),\n\n /**\n * The plugins to use. We use the {@link SnapsBuiltInResolver} to show\n * warnings about using Node.js built-ins, when no fallback is specified.\n */\n plugins: [builtInResolver],\n },\n\n /**\n * The plugins to use.\n *\n * @see https://webpack.js.org/configuration/plugins/\n */\n plugins: [\n /**\n * The `SnapsWebpackPlugin` is a Webpack plugin that checks and updates\n * the manifest file, and evaluates the bundle in SES. While not strictly\n * required, it's highly recommended to use this plugin.\n */\n new SnapsWebpackPlugin({\n manifestPath: config.manifest.path,\n writeManifest: config.manifest.update,\n eval: !options.watch && options.evaluate,\n }),\n\n /**\n * The `SnapsStatsPlugin` is a Webpack plugin that handles the stats\n * output. It's used to show the stats in the terminal, in a format that\n * is easy to read.\n */\n new SnapsStatsPlugin({ verbose: config.stats.verbose }, options.spinner),\n\n /**\n * The `DefinePlugin` is a Webpack plugin that adds static values to the\n * bundle. We use it to add the `NODE_DEBUG`, `NODE_ENV`, and `DEBUG`\n * environment variables, as well as any custom environment\n * variables (as `process.env`).\n */\n new DefinePlugin(getEnvironmentVariables(config.environment)),\n\n /**\n * The `ProgressPlugin` is a Webpack plugin that logs the progress of\n * the build. We set it to log the progress to the spinner.\n */\n new ProgressPlugin({\n handler: getProgressHandler(options.spinner, spinnerText),\n }),\n\n /**\n * The `SnapsBundleWarningPlugin` is a Webpack plugin that shows a\n * warning when the bundle is potentially incompatible with MetaMask\n * Snaps.\n */\n new SnapsBundleWarningsPlugin({\n builtInResolver,\n builtIns: Boolean(config.stats.builtIns),\n buffer: config.stats.buffer,\n }),\n\n /**\n * The `WatchPlugin` is a Webpack plugin that adds extra files to watch\n * for changes. This is useful for rebuilding the bundle when the\n * manifest file changes.\n */\n options.watch &&\n new SnapsWatchPlugin(\n {\n bundle: resolve(config.output.path, config.output.filename),\n evaluate: options.evaluate,\n files: [config.manifest.path],\n },\n options.spinner,\n ),\n\n /**\n * The `ProviderPlugin` is a Webpack plugin that automatically load\n * modules instead of having to import or require them everywhere.\n */\n (config.polyfills === true ||\n (config.polyfills !== false && config.polyfills.buffer)) &&\n new ProvidePlugin({\n Buffer: ['buffer', 'Buffer'],\n }),\n ].filter(Boolean),\n\n /**\n * The optimization configuration. This tells Webpack how to optimize the\n * bundle. Most of the time, you won't need to change this, as the default\n * options set by the `mode` option are sufficient.\n */\n optimization: {\n minimize: config.output.minimize,\n\n /**\n * The minimizer to use. We set it to use the `TerserPlugin`.\n */\n minimizer: [\n new TerserPlugin({\n parallel: true,\n }),\n ],\n },\n\n /**\n * The experiments configuration. This configures which Webpack\n * experiments to enable/disable.\n *\n * @see https://webpack.js.org/configuration/experiments\n */\n experiments: {\n /**\n * Experimental support for top level await.\n *\n * This is unsupported in Snaps and therefore disabled.\n *\n * @see https://webpack.js.org/configuration/experiments/#experimentstoplevelawait\n */\n topLevelAwait: false,\n },\n\n /**\n * The performance configuration. This tells Webpack how to handle\n * performance hints.\n *\n * @see https://webpack.js.org/configuration/performance/\n */\n performance: {\n /**\n * The hints to show. We set it to `false`, so that we don't get\n * performance hints, as they are not relevant for Snaps.\n *\n * @see https://webpack.js.org/configuration/performance/#performancehints\n */\n hints: false,\n },\n\n /**\n * The infrastructure logging configuration. This tells Webpack how to\n * log messages.\n *\n * @see https://webpack.js.org/configuration/infrastructure-logging\n */\n infrastructureLogging: {\n /**\n * The level of logging to use. We set it to `none`, so that we can\n * control the output ourselves.\n */\n level: 'none',\n },\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,wBAAwB;AAE/B,SAAS,eAAe;AACxB,OAAO,kBAAkB;AAEzB,SAAS,cAAc,gBAAgB,qBAAqB;AAwD5D,eAAsB,wBACpB,QACA,UAA0B;AAAA,EACxB,UAAU,OAAO;AACnB,GACwB;AACxB,QAAM,cAAc,QAAQ,SAAS;AACrC,QAAM,kBACJ,OAAO,MAAM,YACb,IAAI,qBAAqB,OAAO,MAAM,UAAU,QAAQ,OAAO;AAEjE,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASL,QAAQ,gBAAgB,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQzC,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAON,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQd,SAAS,WAAW,OAAO,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASpC,OAAO;AAAA;AAAA;AAA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1D,UAAU,QAAQ;AAAA,UAClB,OAAO,CAAC,OAAO,SAAS,IAAI;AAAA,QAC9B;AAAA,QACA,QAAQ;AAAA,MACV;AAAA;AAAA;AAAA;AAAA;AAAA,OAMD,OAAO,cAAc,QACnB,OAAO,cAAc,SAAS,OAAO,UAAU,WAChD,IAAI,cAAc;AAAA,QAChB,QAAQ,CAAC,UAAU,QAAQ;AAAA,MAC7B,CAAC;AAAA,IACL,EAAE,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOhB,cAAc;AAAA,MACZ,UAAU,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA,MAKxB,WAAW;AAAA,QACT,IAAI,aAAa;AAAA,UACf,UAAU;AAAA,QACZ,CAAC;AAAA,MACH;AAAA,IACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQA,aAAa;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAQX,eAAe;AAAA,IACjB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQA,aAAa;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAOX,OAAO;AAAA,IACT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQA,uBAAuB;AAAA;AAAA;AAAA;AAAA;AAAA,MAKrB,OAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkNQUPDPTFjs = require('./chunk-NQUPDPTF.js');
3
+ var _chunkHLQEI6DVjs = require('./chunk-HLQEI6DV.js');
4
4
 
5
5
 
6
6
  var _chunkS7UP2YYFjs = require('./chunk-S7UP2YYF.js');
@@ -12,7 +12,7 @@ var command = {
12
12
  builder: (yarg) => {
13
13
  yarg.option("src", _chunkS7UP2YYFjs.builders_default.src).option("eval", _chunkS7UP2YYFjs.builders_default.eval).option("dist", _chunkS7UP2YYFjs.builders_default.dist).option("outfileName", _chunkS7UP2YYFjs.builders_default.outfileName).option("sourceMaps", _chunkS7UP2YYFjs.builders_default.sourceMaps).option("stripComments", _chunkS7UP2YYFjs.builders_default.stripComments).option("transpilationMode", _chunkS7UP2YYFjs.builders_default.transpilationMode).option("depsToTranspile", _chunkS7UP2YYFjs.builders_default.depsToTranspile).option("manifest", _chunkS7UP2YYFjs.builders_default.manifest).option("writeManifest", _chunkS7UP2YYFjs.builders_default.writeManifest).option("serve", _chunkS7UP2YYFjs.builders_default.serve).option("root", _chunkS7UP2YYFjs.builders_default.root).option("port", _chunkS7UP2YYFjs.builders_default.port).implies("writeManifest", "manifest").implies("depsToTranspile", "transpilationMode");
14
14
  },
15
- handler: async (argv) => _chunkNQUPDPTFjs.watchHandler.call(void 0, argv.context.config, {
15
+ handler: async (argv) => _chunkHLQEI6DVjs.watchHandler.call(void 0, argv.context.config, {
16
16
  port: argv.port
17
17
  })
18
18
  };
@@ -21,4 +21,4 @@ var watch_default = command;
21
21
 
22
22
 
23
23
  exports.watch_default = watch_default;
24
- //# sourceMappingURL=chunk-5QFM7NO5.js.map
24
+ //# sourceMappingURL=chunk-RANTKN66.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  watch_default
3
- } from "./chunk-FK5MBK5X.mjs";
3
+ } from "./chunk-AQSQ7YYP.mjs";
4
4
  import {
5
5
  build_default
6
- } from "./chunk-NQF6PKJG.mjs";
6
+ } from "./chunk-KWHAT6UJ.mjs";
7
7
  import {
8
8
  manifest_default
9
9
  } from "./chunk-G3COWLG5.mjs";
@@ -27,4 +27,4 @@ var commands_default = commands;
27
27
  export {
28
28
  commands_default
29
29
  };
30
- //# sourceMappingURL=chunk-QXYTF636.mjs.map
30
+ //# sourceMappingURL=chunk-SK5KZWVS.mjs.map