Skip to content

Commit 77e0087

Browse files
committed
review feedback
1 parent 5c0b507 commit 77e0087

9 files changed

+12691
-6
lines changed

Diff for: .vscode/launch.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Mocha (Test single file)",
6+
"type": "node",
7+
"request": "launch",
8+
"env": {
9+
"BABEL_ENV": "test"
10+
},
11+
"runtimeArgs": [
12+
"--require",
13+
"babel-core/register",
14+
"${workspaceRoot}/node_modules/.bin/mocha",
15+
"--inspect-brk",
16+
"${relativeFile}",
17+
],
18+
"console": "integratedTerminal",
19+
"internalConsoleOptions": "neverOpen",
20+
"port": 9229
21+
}
22+
]
23+
}

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ NOTE: the default `mixpanel-browser` bundle includes a bundled `mixpanel-recorde
2727

2828
To load the main SDK with no option of session recording:
2929
```javascript
30-
var mixpanel = require('mixpanel-browser/dist/mixpanel-main.cjs')
30+
import mixpanel from 'mixpanel-browser/src/loaders/loader-module-core';
3131
```
3232

3333
To load the main SDK and optionally load session recording bundle asynchronously (via script tag):
3434
```javascript
35-
var mixpanel = require('mixpanel-browser/dist/mixpanel-bundle-async.cjs')
35+
import mixpanel from 'mixpanel-browser/src/loaders/loader-module-with-async-recorder';
3636
```
3737

3838
## Alternative installation via Bower

Diff for: build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ if [ ! -z "$FULL" ]; then
2727
echo 'Building module bundles'
2828
npx rollup -i src/loaders/loader-module.js -f amd -o build/mixpanel.amd.js -c rollup.config.js
2929
npx rollup -i src/loaders/loader-module.js -f cjs -o build/mixpanel.cjs.js -c rollup.config.js
30-
npx rollup -i src/loaders/loader-module-main.js -f cjs -o build/mixpanel-main.cjs.js -c rollup.config.js
31-
npx rollup -i src/loaders/loader-module-bundle-async.js -f cjs -o build/mixpanel-bundle-async.cjs.js -c rollup.config.js
30+
npx rollup -i src/loaders/loader-module-core.js -f cjs -o build/mixpanel-core.cjs.js -c rollup.config.js
31+
npx rollup -i src/loaders/loader-module-with-async-recorder.js -f cjs -o build/mixpanel-with-async-recorder.cjs.js -c rollup.config.js
3232
npx rollup -i src/loaders/loader-module.js -f umd -o build/mixpanel.umd.js -n mixpanel -c rollup.config.js
3333

3434
echo 'Bundling module-loader test runners'

0 commit comments

Comments
 (0)