Skip to content

Commit ccf5eec

Browse files
author
Kamil Kisiela
committed
fix: fix missing dependencies in npm
1281 chore: missing external
1 parent 55d21b5 commit ccf5eec

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,15 @@
2929
"path": "node_modules/cz-conventional-changelog"
3030
}
3131
},
32+
"dependencies": {
33+
"jsondiffpatch": "^0.1.38",
34+
"underscore": "^1.0.4"
35+
},
3236
"peerDependencies": {
3337
"angular": "^1.4.0"
3438
},
3539
"devDependencies": {
36-
"babel": "^6.3.26 ",
40+
"babel": "^6.3.26",
3741
"babel-core": "^6.4.5",
3842
"babel-eslint": "^4.1.6",
3943
"babel-loader": "^6.2.1",

webpack/common.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ var common = {
1919
// global variables
2020
externals: {
2121
angular: 'angular',
22-
underscore: '_',
2322
jsondiffpatch: 'jsondiffpatch',
23+
'_': 'underscore',
2424
Meteor: 'Meteor',
2525
Package: 'Package',
2626
Tracker: 'Tracker'
@@ -50,7 +50,11 @@ var common = {
5050
},
5151
plugins: [
5252
// add information about name and version of angular-meteor package
53-
new webpack.BannerPlugin(pkg.name + ' v' + pkg.version)
53+
new webpack.BannerPlugin(pkg.name + ' v' + pkg.version),
54+
new webpack.ProvidePlugin({
55+
'_': 'underscore',
56+
'jsondiffpatch': 'jsondiffpatch'
57+
})
5458
],
5559
resolve: {
5660
extensions: ['', '.js']

0 commit comments

Comments
 (0)