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

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 };
{ {
"name": "go", "name": "go",
"version": "3.0", "version": "3.0",
"description": "University-branded URL shortening", "description": "University-branded URL shortening",
"main": "index.js", "main": "index.js",
"repository": "git@git.gmu.edu:srct/go.git", "repository": "git@git.gmu.edu:srct/go.git",
"author": "Mason SRCT", "author": "Mason SRCT",
"license": "Apache-2.0", "license": "Apache-2.0",
"private": false, "private": false,
"scripts": { "scripts": {
"dev": "webpack --mode development ./go/go_ahead/src/index.jsx --output ./go/static/main.js --watch", "dev": "webpack --mode development ./go/go_ahead/src/index.jsx --output ./go/static/main.js --watch",
"build": "webpack --mode production ./project/frontend/src/index.js --output ./go/static/main.js" "build": "webpack --mode production ./project/frontend/src/index.js --output ./go/static/main.js"
}, },
"babel": { "babel": {
"presets": [ "presets": [
"es2015", "@babel/preset-env",
"react" "@babel/preset-react"
] ],
}, "plugins": [
"dependencies": { "@babel/plugin-proposal-class-properties"
"babel-core": "^6.26.3", ]
"babel-loader": "^7.1.5", },
"babel-plugin-transform-class-properties": "^6.24.1", "dependencies": {
"babel-preset-env": "^1.7.0", "@babel/core": "^7.1.2",
"babel-preset-es2015": "^6.24.1", "@babel/plugin-proposal-class-properties": "^7.1.0",
"babel-preset-react": "^6.24.1", "@babel/preset-env": "^7.1.0",
"babel-preset-stage-2": "^6.24.1", "@babel/preset-react": "^7.0.0",
"react": "^16.4.2", "babel-core": "^6.26.3",
"react-dom": "^16.4.2", "babel-loader": "^8.0.4",
"webpack": "^4.16.4", "babel-plugin-transform-class-properties": "^6.24.1",
"webpack-cli": "^3.1.0" "babel-preset-env": "^1.7.0",
} "babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"react": "^16.4.2",
"react-dom": "^16.4.2",
"webpack": "^4.16.4",
"webpack-cli": "^3.1.0"
}
} }
module.exports = { module.exports = {
module: { module: {
rules: [{ rules: [
test: /\.jsx$/, {
exclude: /node_modules/, test: /\.(js|jsx)$/,
use: { exclude: /node_modules/,
loader: "babel-loader" use: ['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