Skip to content

Commit 7548404

Browse files
authored
Bundler-friendly entry point (#88)
* Use the browser entry point instead of a webpack build for `browser` in `package.json` (see [the intended use of the browser package.json field](https://github.com/defunctzombie/package-browser-field-spec) for justification). * Loosen lodash & uuid version requirements to increase potential for package reuse by bundlers
1 parent f2e7b46 commit 7548404

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/optimizely-sdk/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.0.0",
44
"description": "JavaScript SDK package for Optimizely X Full Stack",
55
"main": "dist/optimizely.node.js",
6-
"browser": "dist/optimizely.browser.cjs.js",
6+
"browser": "lib/index.browser.js",
77
"scripts": {
88
"test": "mocha ./lib/*.tests.js ./lib/**/*.tests.js ./lib/**/**/*tests.js --recursive",
99
"test-travis": "npm run test && grunt",
@@ -33,11 +33,11 @@
3333
"homepage": "https://github.com/optimizely/javascript-sdk#readme",
3434
"dependencies": {
3535
"json-schema": "^0.2.3",
36-
"lodash": "^4.13.1",
36+
"lodash": "^4.0.0",
3737
"murmurhash": "0.0.2",
3838
"request": "~2.83.0",
3939
"sprintf": "^0.1.5",
40-
"uuid": "~3.0.1"
40+
"uuid": "^3.0.1"
4141
},
4242
"devDependencies": {
4343
"bluebird": "^3.4.6",

0 commit comments

Comments
 (0)