Skip to content

Commit f3a78ef

Browse files
committed
Fix code nto transpilling to ES5
1 parent 0be8f1b commit f3a78ef

File tree

6 files changed

+93
-35
lines changed

6 files changed

+93
-35
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 2.4.0 Mat 7, 2018
4+
* Fix code not transpilling to ES5
5+
36
## 2.3.0
47
* Fix 60 seconds showing at minute transition #38 - Thanks @7022Andre
58
* Fix Uncaught TypeError: Cannot read property 'width' of undefined at Object._clearTimer #34

build/react-countdown-clock.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/react-countdown-clock.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

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

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-countdown-clock",
3-
"version": "2.3.0",
3+
"version": "2.4.0",
44
"description": "HTML5 canvas countdown clock React component",
55
"main": "build/react-countdown-clock.js",
66
"scripts": {
@@ -24,7 +24,8 @@
2424
},
2525
"homepage": "https://github.com/pughpugh/react-countdown-clock",
2626
"devDependencies": {
27-
"cjsx-loader": "^3.0.0",
27+
"babel-core": "^6.26.0",
28+
"babel-preset-react": "^6.24.1",
2829
"coffee-loader": "^0.9.0",
2930
"coffee-script": "^1.8.0",
3031
"react": "^16.2.0",

webpack.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ module.exports = {
2424
rules: [{
2525
test: /\.coffee$/,
2626
use: [
27-
'coffee-loader',
28-
'cjsx-loader'
27+
{
28+
loader: 'coffee-loader',
29+
options: { transpile: { presets: ['react'] } }
30+
}
2931
]
3032
}]
3133
}

0 commit comments

Comments
 (0)