Skip to content

Commit

Permalink
Fix code still not transpilling to ES5
Browse files Browse the repository at this point in the history
  • Loading branch information
pughpugh committed Mar 7, 2018
1 parent f3a78ef commit 548acc5
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 84 deletions.
2 changes: 1 addition & 1 deletion build/react-countdown-clock.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/react-countdown-clock.js.map

Large diffs are not rendered by default.

108 changes: 28 additions & 80 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"homepage": "https://github.com/pughpugh/react-countdown-clock",
"devDependencies": {
"babel-core": "^6.26.0",
"babel-preset-react": "^6.24.1",
"babel-preset-es2015": "^6.24.1",
"cjsx-loader": "^3.0.0",
"coffee-loader": "^0.9.0",
"coffee-script": "^1.8.0",
"react": "^16.2.0",
Expand Down
4 changes: 3 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ module.exports = {
use: [
{
loader: 'coffee-loader',
options: { transpile: { presets: ['react'] } }
options: { transpile: { presets: ['es2015'] } }
},{
loader: 'cjsx-loader'
}
]
}]
Expand Down

0 comments on commit 548acc5

Please sign in to comment.