Skip to content

Commit 1dc81ed

Browse files
committed
Add plugins to add module support for UMD and commonJS
1 parent 6c19f59 commit 1dc81ed

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
"description": "Deep diffs two objects, including nested structures of arrays and objects, and return the difference.",
55
"main": "dist/index.js",
66
"files": [
7-
"dist/index.js"
8-
],
7+
"dist/index.js",
8+
"README.md"
9+
],
910
"scripts": {
1011
"build": "babel src -d dist --ignore *.spec.js",
1112
"prepublish": "npm run build",
@@ -19,6 +20,8 @@
1920
"babel-cli": "^6.18.0",
2021
"babel-core": "^6.18.2",
2122
"babel-istanbul": "^0.11.0",
23+
"babel-plugin-add-module-exports": "^0.2.1",
24+
"babel-plugin-transform-es2015-modules-umd": "^6.22.0",
2225
"babel-preset-es2015": "^6.18.0",
2326
"babel-preset-stage-0": "^6.16.0",
2427
"chai": "^3.5.0",
@@ -29,6 +32,10 @@
2932
"presets": [
3033
"es2015",
3134
"stage-0"
35+
],
36+
"plugins": [
37+
"add-module-exports",
38+
"transform-es2015-modules-umd"
3239
]
3340
},
3441
"repository": {

0 commit comments

Comments
 (0)