Skip to content

Commit

Permalink
Broken Example of React-Hot-Loader
Browse files Browse the repository at this point in the history
  • Loading branch information
framerate committed May 21, 2019
1 parent 656d027 commit 82c6aff
Show file tree
Hide file tree
Showing 11 changed files with 5,243 additions and 6,416 deletions.
23 changes: 0 additions & 23 deletions .babelrc

This file was deleted.

31 changes: 0 additions & 31 deletions .eslintrc

This file was deleted.

9 changes: 9 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
extends:
- standard
- standard-react
parser: babel-eslint
settings:
import/resolver:
node:
paths:
- app/js
35 changes: 35 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
module.exports = function babel(api) {
api.cache(true)

return {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
chrome: '69'
}
}
],
'@babel/preset-react'
],
plugins: [
[
'@babel/plugin-proposal-decorators',
{
legacy: true
}
],
[
'@babel/plugin-proposal-class-properties',
{
loose: true
}
],
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-transform-classes',
'react-hot-loader/babel'
]
}
}
Loading

0 comments on commit 82c6aff

Please sign in to comment.