Skip to content

Commit

Permalink
session recording library
Browse files Browse the repository at this point in the history
  • Loading branch information
tdumitrescu committed Apr 26, 2024
1 parent 3623fe0 commit 4b2d173
Show file tree
Hide file tree
Showing 20 changed files with 8,619 additions and 578 deletions.
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ if [ ! -z "$DIST" ]; then
export FULL=1
fi

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

if [ ! -z "$FULL" ]; then
Expand Down
4 changes: 2 additions & 2 deletions dist/mixpanel-js-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var MIXPANEL_LIB_URL = '//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js';
(function(document, mixpanel) {
// Only stub out if this is the first time running the snippet.
if (!mixpanel['__SV']) {
var script, first_script, gen_fn, functions, i, lib_name = "mixpanel";
var script, first_script, functions, i, lib_name = "mixpanel";
window[lib_name] = mixpanel;

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

};
})(window, '_mixpanel');
})(window, '_mixpanel');
Loading

0 comments on commit 4b2d173

Please sign in to comment.