Skip to content

Commit 4647ac0

Browse files
committed
Export a UMD module.
1 parent cb37dba commit 4647ac0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"modules": "ignore"
2+
"comments": false,
3+
"loose": "all"
34
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "proptypes",
33
"version": "0.14.1",
4+
"amdName": "PropTypes",
45
"description": "React's PropTypes, packaged up as a standalone module.",
56
"main": "index.js",
67
"scripts": {
7-
"build": "babel -f $npm_package_main -s -o $npm_package_main < src/index.js"
8+
"build": "babel -f $npm_package_main -m umd --module-id $npm_package_amdName -s -o $npm_package_main < src/index.js"
89
},
910
"repository": {
1011
"type": "git",

0 commit comments

Comments
 (0)