mirror of
https://github.com/aleleba/create-react-ssr.git
synced 2025-01-08 04:56:57 -06:00
Fixing some errors and deleting unnesessary code.
This commit is contained in:
parent
259e7f9a53
commit
5fb382832d
@ -8,7 +8,4 @@ const PRName = function () {
|
||||
return 'PR-'+ID;
|
||||
};
|
||||
|
||||
console.log(PRName());
|
||||
|
||||
export default PRName;
|
||||
|
||||
console.log(PRName());
|
||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@aleleba/create-react-ssr",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@aleleba/create-react-ssr",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/register": "^7.17.7",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@aleleba/create-react-ssr",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.2",
|
||||
"description": "Starter Kit of server side render of react",
|
||||
"bin": "./bin/cli.js",
|
||||
"main": "src/server/index",
|
||||
|
@ -1,13 +1,4 @@
|
||||
{
|
||||
"extends": "ts-node/node12/tsconfig.json",
|
||||
"ts-node": {
|
||||
// It is faster to skip typechecking.
|
||||
// Remove if you want ts-node to do typechecking.
|
||||
"transpileOnly": true,
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
}
|
||||
},
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"lib": [
|
||||
@ -17,7 +8,6 @@
|
||||
],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"strict": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
@ -29,6 +19,7 @@
|
||||
"noEmit": false,
|
||||
"jsx": "react-jsx",
|
||||
"experimentalDecorators": true,
|
||||
"esModuleInterop": true,
|
||||
"types": [
|
||||
"react/next",
|
||||
"react-dom/next",
|
||||
@ -36,11 +27,14 @@
|
||||
],
|
||||
"sourceMap": true,
|
||||
"baseUrl": "**/*",
|
||||
"outDir": "build"
|
||||
},
|
||||
"include": [
|
||||
"**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
"node_modules",
|
||||
"build",
|
||||
"PRNameGenerator.ts"
|
||||
]
|
||||
}
|
@ -74,9 +74,6 @@ module.exports = {
|
||||
path: BUILD_DIR,
|
||||
filename: '[name].js',
|
||||
libraryTarget: 'commonjs2',
|
||||
chunkFilename: 'chunks/[name].js',
|
||||
devtoolModuleFilenameTemplate: info => path.resolve(info.absoluteResourcePath).replace(/\\/g, '/'),
|
||||
assetModuleFilename: 'assets/[hash][ext][query]',
|
||||
},
|
||||
node: false,
|
||||
externals: [webpackNodeExternals()],
|
||||
|
Loading…
Reference in New Issue
Block a user