Created
July 12, 2016 01:55
-
-
Save mseeley/86d58cb8221c41b6735cdacb4f9fac99 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/build/webpack.base.js b/build/webpack.base.js | |
index e95b194..ac4dcb6 100644 | |
--- a/build/webpack.base.js | |
+++ b/build/webpack.base.js | |
@@ -237,7 +237,11 @@ function createConfig(options) { | |
'tooltip': 'libs/bootstrap/tooltip', | |
'button': 'libs/bootstrap/button', | |
'dropdown': 'libs/bootstrap/dropdown', | |
- 'modal': 'libs/bootstrap/modal' | |
+ 'modal': 'libs/bootstrap/modal', | |
+ | |
+ // React -> Inferno | |
+ 'react': 'inferno-compat', | |
+ 'react-dom': 'inferno-compat' | |
} | |
}, | |
@@ -277,14 +281,10 @@ function createConfig(options) { | |
env: { | |
development: { | |
plugins: [ | |
- 'transform-react-jsx-source' | |
] | |
}, | |
production: { | |
plugins: [ | |
- 'transform-react-inline-elements', | |
- 'transform-react-constant-elements', | |
- 'transform-react-remove-prop-types' | |
] | |
} | |
}, | |
@@ -292,6 +292,7 @@ function createConfig(options) { | |
// See: https://phabricator.babeljs.io/T2877#78089 | |
passPerPreset: true, | |
plugins: [ | |
+ 'inferno', | |
'transform-decorators-legacy' | |
], | |
presets: [ | |
@@ -300,7 +301,6 @@ function createConfig(options) { | |
passPerPreset: false, | |
presets: [ | |
'es2015', | |
- 'react', | |
'stage-1' | |
] | |
} | |
diff --git a/package.json b/package.json | |
index 0dbd781..cb463ae 100644 | |
--- a/package.json | |
+++ b/package.json | |
@@ -13,6 +13,8 @@ | |
"core-js": "2.4.0", | |
"handlebars": "1.3.0", | |
"hoist-non-react-statics": "1.0.3", | |
+ "inferno": "~0.7.2", | |
+ "inferno-compat": "~0.7.2", | |
"jquery-mousewheel": "3.1.13", | |
"libjass": "0.11.0", | |
"moment": "2.4.0", | |
@@ -35,6 +37,7 @@ | |
"babel-core": "~6.5.2", | |
"babel-eslint": "~6.1.0", | |
"babel-loader": "~6.2.4", | |
+ "babel-plugin-inferno": "~0.7.6", | |
"babel-plugin-transform-decorators-legacy": "~1.3.4", | |
"babel-plugin-transform-react-constant-elements": "~6.9.1", | |
"babel-plugin-transform-react-inline-elements": "~6.8.0", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment