aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/webpack.config.js
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-22 02:44:50 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-22 02:44:50 +0800
commitb2e1be5cfe373f7cdafd5bd9a0c3ec1ea1e5f1d5 (patch)
treec2be09e2225c623007e1f91efacb58a9d8912945 /packages/instant/webpack.config.js
parent95a80a0e757647f84515e7bc7208f18b875d4111 (diff)
downloaddexon-sol-tools-b2e1be5cfe373f7cdafd5bd9a0c3ec1ea1e5f1d5.tar
dexon-sol-tools-b2e1be5cfe373f7cdafd5bd9a0c3ec1ea1e5f1d5.tar.gz
dexon-sol-tools-b2e1be5cfe373f7cdafd5bd9a0c3ec1ea1e5f1d5.tar.bz2
dexon-sol-tools-b2e1be5cfe373f7cdafd5bd9a0c3ec1ea1e5f1d5.tar.lz
dexon-sol-tools-b2e1be5cfe373f7cdafd5bd9a0c3ec1ea1e5f1d5.tar.xz
dexon-sol-tools-b2e1be5cfe373f7cdafd5bd9a0c3ec1ea1e5f1d5.tar.zst
dexon-sol-tools-b2e1be5cfe373f7cdafd5bd9a0c3ec1ea1e5f1d5.zip
Better env var names for source map plugin
Diffstat (limited to 'packages/instant/webpack.config.js')
-rw-r--r--packages/instant/webpack.config.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/instant/webpack.config.js b/packages/instant/webpack.config.js
index adc1cb000..7149793c4 100644
--- a/packages/instant/webpack.config.js
+++ b/packages/instant/webpack.config.js
@@ -37,7 +37,7 @@ const getHeapAnalyticsId = environmentName => {
const ROLLBAR_PUBLISH_TOKEN_ENV_NAME = 'INSTANT_ROLLBAR_PUBLISH_TOKEN';
const ROLLBAR_CLIENT_TOKEN_ENV_NAME = 'INSTANT_ROLLBAR_CLIENT_TOKEN';
-const getRollbarPlugin = environmentName => {
+const getRollbarSourceMapPlugin = environmentName => {
if (!environmentName) {
return undefined;
}
@@ -101,14 +101,14 @@ module.exports = (env, argv) => {
'process.env': envVars,
}),
];
- const rollbarPlugin = getRollbarPlugin(environmentName);
- if (rollbarPlugin) {
+ const rollbarSourceMapPlugin = getRollbarSourceMapPlugin(environmentName);
+ if (rollbarSourceMapPlugin) {
console.log('Using rollbar source map plugin');
- plugins = plugins.concat(rollbarPlugin);
+ plugins = plugins.concat(rollbarSourceMapPlugin);
} else {
console.log('Not using rollbar source map plugin');
}
- validateRollbarPresence(environmentName, envVars['ROLLBAR_ENABLED'], rollbarPlugin);
+ validateRollbarPresence(environmentName, envVars['ROLLBAR_ENABLED'], rollbarSourceMapPlugin);
const config = {
entry: {