Skip to content

Commit 0ab1616

Browse files
author
Pavel Dzhagriev
committed
rebuild on babel & webpack
1 parent 9f5e842 commit 0ab1616

12 files changed

Lines changed: 26672 additions & 34161 deletions

File tree

.babelrc

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

example/.babelrc

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

example/package-lock.json

Lines changed: 24945 additions & 33794 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "0.0.0",
55
"private": true,
66
"scripts": {
7-
"start": "node ../node_modules/react-scripts/bin/react-scripts.js start",
7+
"start": "webpack-dev-server --mode development --watch",
88
"build": "node ../node_modules/react-scripts/bin/react-scripts.js build",
99
"test": "node ../node_modules/react-scripts/bin/react-scripts.js test",
1010
"eject": "node ../node_modules/react-scripts/bin/react-scripts.js eject",
@@ -21,7 +21,12 @@
2121
"treeview-component": "file:.."
2222
},
2323
"devDependencies": {
24-
"@babel/plugin-syntax-object-rest-spread": "^7.8.3"
24+
"@babel/plugin-proposal-class-properties": "^7.10.4",
25+
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
26+
"@babel/plugin-transform-arrow-functions": "^7.10.4",
27+
"file-loader": "^6.1.0",
28+
"html-webpack-plugin": "^4.4.1",
29+
"webpack-dev-server": "3.11.0"
2530
},
2631
"eslintConfig": {
2732
"extends": "react-app"

example/public/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
5+
<link rel="shortcut icon" href="favicon.ico" />
66
<meta
77
name="viewport"
88
content="width=device-width, initial-scale=1, shrink-to-fit=no"
@@ -13,7 +13,7 @@
1313
manifest.json provides metadata used when your web app is added to the
1414
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
1515
-->
16-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
16+
<link rel="manifest" href="manifest.json" />
1717

1818
<!--
1919
Notice the use of %PUBLIC_URL% in the tags above.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@ class App extends React.Component {
8080
outline: 'none'
8181
}
8282
}
83-
return <div className="wrapper">
83+
return (
84+
<div className="wrapper">
8485
<TreeView {...treeProps} />
8586
</div>
87+
)
8688
}
8789
}
8890

0 commit comments

Comments
 (0)