Commit 35936f48 authored by Zach Osman's avatar Zach Osman
Browse files

This DOES work

parent e8b7b913
Pipeline #3095 passed with stage
in 57 seconds
import React from 'react'; import React from 'react';
export default class HomePage extends Component { export default class HomePage extends Component {
state = {};
render() { render() {
return ( return (
<div> <div>
......
import HomePage from './HomePage.jsx'; import HomePage from './HomePage';
export { HomePage }; export { HomePage };
...@@ -13,13 +13,20 @@ ...@@ -13,13 +13,20 @@
}, },
"babel": { "babel": {
"presets": [ "presets": [
"es2015", "@babel/preset-env",
"react" "@babel/preset-react"
],
"plugins": [
"@babel/plugin-proposal-class-properties"
] ]
}, },
"dependencies": { "dependencies": {
"@babel/core": "^7.1.2",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.0.0",
"babel-core": "^6.26.3", "babel-core": "^6.26.3",
"babel-loader": "^7.1.5", "babel-loader": "^8.0.4",
"babel-plugin-transform-class-properties": "^6.24.1", "babel-plugin-transform-class-properties": "^6.24.1",
"babel-preset-env": "^1.7.0", "babel-preset-env": "^1.7.0",
"babel-preset-es2015": "^6.24.1", "babel-preset-es2015": "^6.24.1",
......
module.exports = { module.exports = {
module: { module: {
rules: [{ rules: [
test: /\.jsx$/, {
test: /\.(js|jsx)$/,
exclude: /node_modules/, exclude: /node_modules/,
use: { use: ['babel-loader'],
loader: "babel-loader" },
} ],
}] },
} resolve: {
extensions: ['*', '.js', '.jsx'],
},
}; };
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment