Skip to content

Commit 4b2d173

Browse files
committed
session recording library
1 parent 3623fe0 commit 4b2d173

File tree

20 files changed

+8619
-578
lines changed

20 files changed

+8619
-578
lines changed

build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ if [ ! -z "$DIST" ]; then
77
export FULL=1
88
fi
99

10-
echo 'Building main bundle'
10+
echo 'Building main bundles'
1111
npx rollup -i src/loaders/loader-globals.js -f iife -o build/mixpanel.globals.js -n mixpanel -c rollup.config.js
12+
npx rollup -i src/recorder/index.js -f iife -n mixpanel -c src/recorder/rollup.config.js
1213
ln -sf mixpanel.globals.js build/mixpanel.js
1314

1415
if [ ! -z "$FULL" ]; then

dist/mixpanel-js-wrapper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var MIXPANEL_LIB_URL = '//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js';
99
(function(document, mixpanel) {
1010
// Only stub out if this is the first time running the snippet.
1111
if (!mixpanel['__SV']) {
12-
var script, first_script, gen_fn, functions, i, lib_name = "mixpanel";
12+
var script, first_script, functions, i, lib_name = "mixpanel";
1313
window[lib_name] = mixpanel;
1414

1515
mixpanel['_i'] = [];
@@ -244,4 +244,4 @@ var MIXPANEL_LIB_URL = '//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js';
244244
return mp.push.apply(mp, [[cmd].concat(args)]);
245245

246246
};
247-
})(window, '_mixpanel');
247+
})(window, '_mixpanel');

0 commit comments

Comments
 (0)