Skip to content

Commit 79d91e3

Browse files
committed
Remove old defaults
1 parent 5b05cc1 commit 79d91e3

File tree

3 files changed

+7
-103
lines changed

3 files changed

+7
-103
lines changed

defaults.cjs

Lines changed: 0 additions & 29 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -100,63 +100,6 @@
100100
"cdn": {
101101
"host": "cdn.rollbar.com"
102102
},
103-
"defaults": {
104-
"endpoint": "api.rollbar.com/api/1/item/",
105-
"server": {
106-
"scrubHeaders": [
107-
"authorization",
108-
"www-authorization",
109-
"http_authorization",
110-
"omniauth.auth",
111-
"cookie",
112-
"oauth-access-token",
113-
"x-access-token",
114-
"x_csrf_token",
115-
"http_x_csrf_token",
116-
"x-csrf-token"
117-
],
118-
"scrubFields": [
119-
"pw",
120-
"pass",
121-
"passwd",
122-
"password",
123-
"password_confirmation",
124-
"passwordConfirmation",
125-
"confirm_password",
126-
"confirmPassword",
127-
"secret",
128-
"secret_token",
129-
"secretToken",
130-
"secret_key",
131-
"secretKey",
132-
"api_key",
133-
"access_token",
134-
"accessToken",
135-
"authenticity_token",
136-
"oauth_token",
137-
"token",
138-
"user_session_secret",
139-
"request.session.csrf",
140-
"request.session._csrf",
141-
"request.params._csrf",
142-
"request.cookie",
143-
"request.cookies"
144-
]
145-
},
146-
"reactNative": {
147-
"rewriteFilenamePatterns": [
148-
"^.*/[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}/[^/]*.app/(.*)$",
149-
"^.*/[0-9A-Fa-f]{64}/codepush_ios/(.*)$",
150-
"^.*/[0-9A-Fa-f]{64}/codepush_android/(.*)$",
151-
"^.*/[0-9A-Fa-f]{64}/CodePush/(.*)$"
152-
]
153-
},
154-
"logLevel": "debug",
155-
"reportLevel": "debug",
156-
"uncaughtErrorLevel": "error",
157-
"maxItems": 0,
158-
"itemsPerMin": 60
159-
},
160103
"plugins": {
161104
"jquery": {
162105
"version": "0.0.8"

webpack.config.cjs

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
var extend = require('util')._extend;
22
var path = require('path');
33
var webpack = require('webpack');
4-
var defaults = require('./defaults.cjs');
54
var TerserPlugin = require('terser-webpack-plugin');
65

76
var outputPath = path.resolve(__dirname, 'dist');
@@ -10,7 +9,6 @@ var outputPath = path.resolve(__dirname, 'dist');
109
var needToTranspile = ['@rrweb'].join('|');
1110
var excludePattern = new RegExp('node_modules/(?!(' + needToTranspile + ')/)');
1211

13-
var defaultsPlugin = new webpack.DefinePlugin(defaults);
1412
var uglifyPlugin = new TerserPlugin({
1513
parallel: true,
1614
});
@@ -25,7 +23,7 @@ var snippetConfig = {
2523
filename: '[name].js',
2624
},
2725
target: ['web', 'es5'],
28-
plugins: [defaultsPlugin],
26+
plugins: [],
2927
module: {
3028
rules: [
3129
{
@@ -47,7 +45,7 @@ var pluginConfig = {
4745
filename: '[name].min.js',
4846
},
4947
target: ['web', 'es5'],
50-
plugins: [defaultsPlugin],
48+
plugins: [],
5149
module: {
5250
rules: [
5351
{
@@ -67,7 +65,7 @@ var vanillaConfigBase = {
6765
path: outputPath,
6866
},
6967
target: ['web', 'es5'],
70-
plugins: [defaultsPlugin],
68+
plugins: [],
7169
devtool: 'hidden-source-map',
7270
module: {
7371
rules: [
@@ -127,12 +125,10 @@ function optimizationConfig(minimizer) {
127125
}
128126

129127
function addVanillaToConfig(webpackConfig, filename, extraPlugins, minimizer) {
130-
var basePlugins = [defaultsPlugin];
131128
var vanillaConfig = extend({}, vanillaConfigBase);
132129
vanillaConfig.name = filename;
133130

134-
var plugins = basePlugins.concat(extraPlugins);
135-
vanillaConfig.plugins = plugins;
131+
vanillaConfig.plugins = extraPlugins;
136132

137133
vanillaConfig.optimization = optimizationConfig(minimizer);
138134

@@ -142,11 +138,9 @@ function addVanillaToConfig(webpackConfig, filename, extraPlugins, minimizer) {
142138
}
143139

144140
function addUMDToConfig(webpackConfig, filename, extraPlugins, minimizer) {
145-
var basePlugins = [defaultsPlugin];
146141
var UMDConfig = extend({}, UMDConfigBase);
147142

148-
var plugins = basePlugins.concat(extraPlugins);
149-
UMDConfig.plugins = plugins;
143+
UMDConfig.plugins = extraPlugins;
150144

151145
UMDConfig.optimization = optimizationConfig(minimizer);
152146

@@ -161,11 +155,9 @@ function addNoConflictToConfig(
161155
extraPlugins,
162156
minimizer,
163157
) {
164-
var basePlugins = [defaultsPlugin];
165158
var noConflictConfig = extend({}, noConflictConfigBase);
166159

167-
var plugins = basePlugins.concat(extraPlugins);
168-
noConflictConfig.plugins = plugins;
160+
noConflictConfig.plugins = extraPlugins;
169161

170162
noConflictConfig.optimization = optimizationConfig(minimizer);
171163

@@ -178,11 +170,9 @@ function addNoConflictToConfig(
178170
}
179171

180172
function addNamedAMDToConfig(webpackConfig, filename, extraPlugins, minimizer) {
181-
var basePlugins = [defaultsPlugin];
182173
var AMDConfig = extend({}, namedAMDConfigBase);
183174

184-
var plugins = basePlugins.concat(extraPlugins);
185-
AMDConfig.plugins = plugins;
175+
AMDConfig.plugins = extraPlugins;
186176

187177
AMDConfig.optimization = optimizationConfig(minimizer);
188178

0 commit comments

Comments
 (0)