Skip to content

Commit 1c6adf4

Browse files
committed
fix babel compile
1 parent d36afef commit 1c6adf4

3 files changed

Lines changed: 1649 additions & 2374 deletions

File tree

.babelrc

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
{
2-
"presets": [
3-
"env",
4-
"react"
5-
],
6-
"plugins": [
7-
"transform-class-properties"
8-
]
9-
}
2+
"presets": ["@babel/preset-env", "@babel/preset-react"],
3+
"plugins": []
4+
}

package.json

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
],
77
"version": "1.0.0",
88
"description": "React component to embed codepen project",
9-
"main": "lib/index.js",
9+
"main": "src/index.js",
1010
"repository": {
1111
"url": "https://github.com/shettypuneeth/react-codepen-embed",
1212
"type": "git"
@@ -22,16 +22,12 @@
2222
"prop-types": "^15.5.0"
2323
},
2424
"devDependencies": {
25-
"babel-cli": "^6.24.1",
26-
"babel-loader": "^7.1.2",
27-
"babel-plugin-transform-class-properties": "^6.24.1",
28-
"babel-preset-env": "^1.6.1",
29-
"babel-preset-react": "^6.24.1",
30-
"flow-bin": "^0.41.0",
31-
"jest": "^19.0.2",
25+
"@babel/cli": "^7.4.4",
26+
"@babel/core": "^7.4.5",
27+
"@babel/preset-env": "^7.4.5",
28+
"@babel/preset-react": "^7.0.0",
3229
"react": "^16.8.0",
33-
"react-dom": "^16.8.0",
34-
"react-test-renderer": "^16.0.0"
30+
"react-dom": "^16.8.0"
3531
},
3632
"peerDependencies": {
3733
"react": "^16.8.0"

0 commit comments

Comments
 (0)