Skip to content

Commit

Permalink
Sample updated to awesome + babel
Browse files Browse the repository at this point in the history
  • Loading branch information
brauliodiez committed Nov 15, 2017
1 parent 8db901e commit 46f63ec
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
10 changes: 10 additions & 0 deletions 03 State/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"presets": [
[
"env",
{
"modules": false
}
]
]
}
2 changes: 2 additions & 0 deletions 03 State/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
"@types/react": "^16.0.10",
"@types/react-dom": "^16.0.1",
"awesome-typescript-loader": "^3.2.3",
"babel-core": "^6.26.0",
"babel-preset-env": "^1.6.1",
"css-loader": "^0.28.7",
"extract-text-webpack-plugin": "^3.0.1",
"file-loader": "^1.1.5",
Expand Down
5 changes: 3 additions & 2 deletions 03 State/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"target": "es6",
"module": "es6",
"moduleResolution": "node",
"declaration": false,
"noImplicitAny": false,
"jsx": "react",
Expand Down
3 changes: 3 additions & 0 deletions 03 State/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ module.exports = {
test: /\.(ts|tsx)$/,
exclude: /node_modules/,
loader: 'awesome-typescript-loader',
options: {
useBabel: true,
},
},
{
test: /\.css$/,
Expand Down

0 comments on commit 46f63ec

Please sign in to comment.