Fix webpack resolution

This commit is contained in:
willclarktech 2021-05-20 13:37:43 +02:00
parent 9401584a72
commit 6c5fd13a6a
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7
18 changed files with 2811 additions and 15 deletions

2749
.pnp.js generated

File diff suppressed because it is too large Load Diff

BIN
.yarn/cache/stream-browserify-npm-3.0.0-4c0bd97245-55fb0c3008.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

View File

@ -13,6 +13,8 @@ plugins:
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"
pnpMode: "loose"
preferInteractive: true
yarnPath: .yarn/releases/yarn-2.4.1.cjs

View File

@ -72,6 +72,7 @@
"prettier": "^2.0.5",
"ses": "^0.11.0",
"source-map-support": "^0.5.19",
"stream-browserify": "^3.0.0",
"ts-node": "^8",
"typedoc": "^0.20",
"typescript": "~4.0",

View File

@ -1,6 +1,7 @@
/* eslint-disable @typescript-eslint/naming-convention */
const glob = require("glob");
const path = require("path");
const webpack = require("webpack");
const target = "web";
const distdir = path.join(__dirname, "dist", "web");
@ -14,13 +15,18 @@ module.exports = [
path: distdir,
filename: "tests.js",
},
plugins: [
new webpack.ProvidePlugin({
Buffer: ["buffer", "Buffer"],
}),
],
resolve: {
fallback: {
buffer: false,
crypto: false,
events: false,
path: false,
stream: false,
stream: require.resolve("stream-browserify"),
string_decoder: false,
},
},

View File

@ -76,6 +76,7 @@
"readonly-date": "^1.0.0",
"ses": "^0.11.0",
"source-map-support": "^0.5.19",
"stream-browserify": "^3.0.0",
"ts-node": "^8",
"typedoc": "^0.20",
"typescript": "~4.0",

View File

@ -22,6 +22,9 @@ module.exports = [
CW3_ENABLED: "",
CW1_ENABLED: "",
}),
new webpack.ProvidePlugin({
Buffer: ["buffer", "Buffer"],
}),
],
resolve: {
fallback: {
@ -29,7 +32,7 @@ module.exports = [
crypto: false,
events: false,
path: false,
stream: false,
stream: require.resolve("stream-browserify"),
string_decoder: false,
},
},

View File

@ -86,6 +86,7 @@
"prettier": "^2.0.5",
"ses": "^0.11.0",
"source-map-support": "^0.5.19",
"stream-browserify": "^3.0.0",
"ts-node": "^8",
"typedoc": "^0.20",
"typescript": "~4.0",

View File

@ -26,7 +26,7 @@ module.exports = [
crypto: false,
events: false,
path: false,
stream: false,
stream: require.resolve("stream-browserify"),
string_decoder: false,
},
},

View File

@ -54,7 +54,6 @@
"@types/node": "^15.0.1",
"@typescript-eslint/eslint-plugin": "^4.22.1",
"@typescript-eslint/parser": "^4.22.1",
"buffer": "^6.0.3",
"eslint": "^7.5",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-node": "^0.3.4",

View File

@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/naming-convention */
const glob = require("glob");
const path = require("path");
const webpack = require("webpack");
@ -22,7 +23,7 @@ module.exports = [
resolve: {
fallback: {
buffer: false,
}
}
},
},
},
];

View File

@ -76,6 +76,7 @@
"readonly-date": "^1.0.0",
"ses": "^0.11.0",
"source-map-support": "^0.5.19",
"stream-browserify": "^3.0.0",
"ts-node": "^8",
"typedoc": "^0.20",
"typescript": "~4.0",

View File

@ -15,14 +15,19 @@ module.exports = [
path: distdir,
filename: "tests.js",
},
plugins: [new webpack.EnvironmentPlugin({ LAUNCHPAD_ENABLED: "" })],
plugins: [
new webpack.EnvironmentPlugin({ LAUNCHPAD_ENABLED: "" }),
new webpack.ProvidePlugin({
Buffer: ["buffer", "Buffer"],
}),
],
resolve: {
fallback: {
buffer: false,
crypto: false,
events: false,
path: false,
stream: false,
stream: require.resolve("stream-browserify"),
string_decoder: false,
},
},

View File

@ -78,6 +78,7 @@
"prettier": "^2.0.5",
"ses": "^0.11.0",
"source-map-support": "^0.5.19",
"stream-browserify": "^3.0.0",
"ts-node": "^8",
"typedoc": "^0.20",
"typescript": "~4.0",

View File

@ -1,6 +1,7 @@
/* eslint-disable @typescript-eslint/naming-convention */
const glob = require("glob");
const path = require("path");
const webpack = require("webpack");
const target = "web";
const distdir = path.join(__dirname, "dist", "web");
@ -14,13 +15,18 @@ module.exports = [
path: distdir,
filename: "tests.js",
},
plugins: [
new webpack.ProvidePlugin({
Buffer: ["buffer", "Buffer"],
}),
],
resolve: {
fallback: {
buffer: false,
crypto: false,
events: false,
path: false,
stream: false,
stream: require.resolve("stream-browserify"),
string_decoder: false,
},
},

View File

@ -15,7 +15,7 @@ module.exports = [
path: distdir,
filename: "tests.js",
},
plugins: [new webpack.EnvironmentPlugin({ SIMAPP_ENABLED: "" })],
plugins: [new webpack.EnvironmentPlugin({ SIMAPP_ENABLED: "", SLOW_SIMAPP_ENABLED: "" })],
resolve: {
fallback: {
buffer: false,

View File

@ -15,7 +15,12 @@ module.exports = [
path: distdir,
filename: "tests.js",
},
plugins: [new webpack.EnvironmentPlugin({ TENDERMINT_ENABLED: "" })],
plugins: [
new webpack.EnvironmentPlugin({ TENDERMINT_ENABLED: "" }),
new webpack.ProvidePlugin({
Buffer: ["buffer", "Buffer"],
}),
],
resolve: {
fallback: {
buffer: false,

View File

@ -330,6 +330,7 @@ __metadata:
prettier: ^2.0.5
ses: ^0.11.0
source-map-support: ^0.5.19
stream-browserify: ^3.0.0
ts-node: ^8
typedoc: ^0.20
typescript: ~4.0
@ -427,6 +428,7 @@ __metadata:
readonly-date: ^1.0.0
ses: ^0.11.0
source-map-support: ^0.5.19
stream-browserify: ^3.0.0
ts-node: ^8
typedoc: ^0.20
typescript: ~4.0
@ -558,6 +560,7 @@ __metadata:
ses: ^0.11.0
sha.js: ^2.4.11
source-map-support: ^0.5.19
stream-browserify: ^3.0.0
ts-node: ^8
typedoc: ^0.20
typescript: ~4.0
@ -582,7 +585,6 @@ __metadata:
"@typescript-eslint/parser": ^4.22.1
base64-js: ^1.3.0
bech32: ^1.1.4
buffer: ^6.0.3
eslint: ^7.5
eslint-config-prettier: ^8.3.0
eslint-import-resolver-node: ^0.3.4
@ -774,6 +776,7 @@ __metadata:
readonly-date: ^1.0.0
ses: ^0.11.0
source-map-support: ^0.5.19
stream-browserify: ^3.0.0
ts-node: ^8
typedoc: ^0.20
typescript: ~4.0
@ -910,6 +913,7 @@ __metadata:
protobufjs: ~6.10.2
ses: ^0.11.0
source-map-support: ^0.5.19
stream-browserify: ^3.0.0
ts-node: ^8
typedoc: ^0.20
typescript: ~4.0
@ -4502,7 +4506,7 @@ fsevents@~2.3.1:
languageName: node
linkType: hard
"inherits@npm:2, inherits@npm:2.0.4, inherits@npm:^2.0.1, inherits@npm:^2.0.3, inherits@npm:^2.0.4, inherits@npm:~2.0.3":
"inherits@npm:2, inherits@npm:2.0.4, inherits@npm:^2.0.1, inherits@npm:^2.0.3, inherits@npm:^2.0.4, inherits@npm:~2.0.3, inherits@npm:~2.0.4":
version: 2.0.4
resolution: "inherits@npm:2.0.4"
checksum: 98426da247ddfc3dcd7d7daedd90c3ca32d5b08deca08949726f12d49232aef94772a07b36cf4ff833e105ae2ef931777f6de4a6dd8245a216b9299ad4a50bea
@ -6412,7 +6416,7 @@ fsevents@~2.3.1:
languageName: node
linkType: hard
"readable-stream@npm:^3.1.1, readable-stream@npm:^3.4.0, readable-stream@npm:^3.6.0":
"readable-stream@npm:^3.1.1, readable-stream@npm:^3.4.0, readable-stream@npm:^3.5.0, readable-stream@npm:^3.6.0":
version: 3.6.0
resolution: "readable-stream@npm:3.6.0"
dependencies:
@ -7011,6 +7015,16 @@ fsevents@~2.3.1:
languageName: node
linkType: hard
"stream-browserify@npm:^3.0.0":
version: 3.0.0
resolution: "stream-browserify@npm:3.0.0"
dependencies:
inherits: ~2.0.4
readable-stream: ^3.5.0
checksum: 55fb0c30082a87f7e42f1c093ad7aee42c942864edf11ac911e6e89d5be9877ba32fd20569f6bfb489dabd71b63d3264bec349463294abc270fba42bedd6ca22
languageName: node
linkType: hard
"streamroller@npm:^2.2.4":
version: 2.2.4
resolution: "streamroller@npm:2.2.4"