Commit 9a25a8ca authored by jnsone11's avatar jnsone11
Browse files

add ssr

parent 54bab7b0
......@@ -28,7 +28,9 @@ const loaders = IS_PRODUCTION ?
];
module.exports = {
entry: "./src/server/server.tsx",
entry: [
"./src/server/server.tsx"
],
output: {
filename: "server.js",
path: __dirname + "/dist/server"
......@@ -55,7 +57,12 @@ module.exports = {
},
// All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'.
{ enforce: "pre", test: /\.js$/, loader: "source-map-loader" }
{
enforce: 'pre',
test: /\.js$/,
loader: "source-map-loader",
exclude: [/node_modules/, /build/, /__test__/]
}
]
}
};
\ No newline at end of file
......@@ -2,7 +2,12 @@
"compilerOptions": {
"noImplicitAny": true,
"module": "commonjs",
"target": "es2015",
"jsx": "react"
"target": "es2016",
"jsx": "react",
"lib": [
"es2016",
"dom",
"esnext.asynciterable"
]
}
}
\ No newline at end of file
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