Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@rrweb/record": "^2.0.0-alpha.18",
"async": "~3.2.3",
"console-polyfill": "0.3.0",
"error-stack-parser": "^2.0.4",
"error-stack-parser-es": "^1.0.5",
"json-stringify-safe": "~5.0.0",
"lru-cache": "~2.2.1",
"request-ip": "~3.3.0",
Expand Down
4 changes: 2 additions & 2 deletions src/errorParser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ErrorStackParser from 'error-stack-parser';
import { parse as parseErrorStack } from 'error-stack-parser-es';

var UNKNOWN_FUNCTION = '?';
var ERR_CLASS_REGEXP = new RegExp(
Expand Down Expand Up @@ -36,7 +36,7 @@ function Stack(exception, skip) {
skip = skip || 0;

try {
parserStack = ErrorStackParser.parse(exception);
parserStack = parseErrorStack(exception);
} catch (e) {
parserStack = [];
}
Expand Down
8 changes: 4 additions & 4 deletions webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var TerserPlugin = require('terser-webpack-plugin');
var outputPath = path.resolve(__dirname, 'dist');

// Packages that need to be transpiled to ES5
var needToTranspile = ['@rrweb'].join('|');
var needToTranspile = ['@rrweb', 'error-stack-parser-es'].join('|');
var excludePattern = new RegExp('node_modules/(?!(' + needToTranspile + ')/)');

var uglifyPlugin = new TerserPlugin({
Expand Down Expand Up @@ -47,7 +47,7 @@ var pluginConfig = {
module: {
rules: [
{
test: /\.js$/,
test: /\.m?js$/,
loader: 'babel-loader',
exclude: [excludePattern, /vendor/],
},
Expand All @@ -67,7 +67,7 @@ var vanillaConfigBase = {
module: {
rules: [
{
test: /\.js$/,
test: /\.m?js$/,
loader: 'babel-loader',
exclude: [excludePattern, /vendor/],
},
Expand All @@ -91,7 +91,7 @@ var UMDConfigBase = {
module: {
rules: [
{
test: /\.js$/,
test: /\.m?js$/,
loader: 'babel-loader',
exclude: [excludePattern, /vendor/],
},
Expand Down
Loading