Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
fix: include hasha, replace context
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyera Eulberg authored and CriesofCarrots committed Jan 20, 2020
1 parent db871c9 commit f580ae2
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 6 deletions.
7 changes: 3 additions & 4 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/* eslint-disable */
const {override, addBabelPlugin, addWebpackExternals} = require('customize-cra');
const {override, addBabelPlugin, addWebpackPlugin} = require('customize-cra');
const webpack = require('webpack');

module.exports = override(
// addBabelPlugin('lodash'),
addBabelPlugin('react-hot-loader/babel'),
addBabelPlugin('date-fns'),
addWebpackExternals({
hasha: 'hasha'
}),
addWebpackPlugin(new webpack.ContextReplacementPlugin(/hasha/)),
);
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
"react-scripts": "3.3.0",
"robust-websocket": "^1.0.0",
"semantic-release": "^16.0.2",
"watch": "^1.0.2"
"watch": "^1.0.2",
"webpack": "^4.41.5"
},
"bin": {
"solana-blockexplorer": "bin/blockexplorer.sh"
Expand Down
31 changes: 30 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15434,7 +15434,7 @@ [email protected]:
terser "^4.3.9"
webpack-sources "^1.4.3"

terser-webpack-plugin@^1.4.1:
terser-webpack-plugin@^1.4.1, terser-webpack-plugin@^1.4.3:
version "1.4.3"
resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-1.4.3.tgz#5ecaf2dbdc5fb99745fd06791f46fc9ddb1c9a7c"
integrity sha512-QMxecFz/gHQwteWwSo5nTc6UaICqN1bMedC5sMtUc7y3Ha3Q8y6ZO0iCR8pq4RJC8Hjf0FEPEHZqcMB/+DFCrA==
Expand Down Expand Up @@ -16321,6 +16321,35 @@ [email protected]:
watchpack "^1.6.0"
webpack-sources "^1.4.1"

webpack@^4.41.5:
version "4.41.5"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.41.5.tgz#3210f1886bce5310e62bb97204d18c263341b77c"
integrity sha512-wp0Co4vpyumnp3KlkmpM5LWuzvZYayDwM2n17EHFr4qxBBbRokC7DJawPJC7TfSFZ9HZ6GsdH40EBj4UV0nmpw==
dependencies:
"@webassemblyjs/ast" "1.8.5"
"@webassemblyjs/helper-module-context" "1.8.5"
"@webassemblyjs/wasm-edit" "1.8.5"
"@webassemblyjs/wasm-parser" "1.8.5"
acorn "^6.2.1"
ajv "^6.10.2"
ajv-keywords "^3.4.1"
chrome-trace-event "^1.0.2"
enhanced-resolve "^4.1.0"
eslint-scope "^4.0.3"
json-parse-better-errors "^1.0.2"
loader-runner "^2.4.0"
loader-utils "^1.2.3"
memory-fs "^0.4.1"
micromatch "^3.1.10"
mkdirp "^0.5.1"
neo-async "^2.6.1"
node-libs-browser "^2.2.1"
schema-utils "^1.0.0"
tapable "^1.1.3"
terser-webpack-plugin "^1.4.3"
watchpack "^1.6.0"
webpack-sources "^1.4.1"

websocket-driver@>=0.5.1:
version "0.7.3"
resolved "https://registry.yarnpkg.com/websocket-driver/-/websocket-driver-0.7.3.tgz#a2d4e0d4f4f116f1e6297eba58b05d430100e9f9"
Expand Down

0 comments on commit f580ae2

Please sign in to comment.