Skip to content

Commit c529a94

Browse files
committed
Exposing arangojs in browser bundle.
1 parent ae26dd2 commit c529a94

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"chai": "3.5.0",
6060
"core-js": "2.4.0",
6161
"coveralls": "2.11.9",
62+
"expose-loader": "0.7.1",
6263
"istanbul": "0.4.3",
6364
"json-loader": "0.5.4",
6465
"mocha": "2.5.3",
@@ -82,4 +83,4 @@
8283
"type": "git",
8384
"url": "https://github.com/arangodb/arangojs.git"
8485
}
85-
}
86+
}

webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports = {
1010
},
1111
module: {
1212
loaders: [
13+
{test: /index\.js$/, loader: 'expose?arangojs'},
1314
{test: /\.js$/, loader: 'babel-loader'},
1415
{test: /\.json$/, loader: 'json-loader'}
1516
]

0 commit comments

Comments
 (0)