Speech as a package #416
2
index.js
|
@ -7,7 +7,7 @@ const helmet = require('helmet');
|
|||
![]() hmm, the problem is that the server uses jsx for server side rendering, so it needs to be transpiled (I think that's the only part that needs to be transpiled), so I wanted to build a bundle and export that bundle. Do you think I should just transpile with babel and not actual bundle with webpack? That's what I did for spee.ch-components hmm, the problem is that the server uses jsx for server side rendering, so it needs to be transpiled (I think that's the only part that needs to be transpiled), so I wanted to build a bundle and export that bundle. Do you think I should just transpile with babel and not actual bundle with webpack? That's what I did for [spee.ch-components](https://github.com/lbryio/spee.ch-components)
![]() Oh I gotcha. I was confused. I still don't think this needs to be committed. You can build before publishing. IMO if someone is cloning the repo, they will be building the app on their own. Oh I gotcha. I was confused.
I still don't think this needs to be committed. You can build before publishing. IMO if someone is cloning the repo, they will be building the app on their own.
![]() i updated it to only transpile the two jsx render functions that are needed for SSR, the rest does not need to be built at this level, as the implementation will build the app again. i updated it to only transpile the two jsx render functions that are needed for SSR, the rest does not need to be built at this level, as the implementation will build the app again.
![]() Don't commit this Don't commit this
![]() hmm, the problem is that the server uses jsx for server side rendering, so it needs to be transpiled (I think that's the only part that needs to be transpiled), so I wanted to build a bundle and export that bundle. Do you think I should just transpile with babel and not actual bundle with webpack? That's what I did for spee.ch-components hmm, the problem is that the server uses jsx for server side rendering, so it needs to be transpiled (I think that's the only part that needs to be transpiled), so I wanted to build a bundle and export that bundle. Do you think I should just transpile with babel and not actual bundle with webpack? That's what I did for [spee.ch-components](https://github.com/lbryio/spee.ch-components)
![]() Oh I gotcha. I was confused. I still don't think this needs to be committed. You can build before publishing. IMO if someone is cloning the repo, they will be building the app on their own. Oh I gotcha. I was confused.
I still don't think this needs to be committed. You can build before publishing. IMO if someone is cloning the repo, they will be building the app on their own.
![]() i updated it to only transpile the two jsx render functions that are needed for SSR, the rest does not need to be built at this level, as the implementation will build the app again. i updated it to only transpile the two jsx render functions that are needed for SSR, the rest does not need to be built at this level, as the implementation will build the app again.
|
||||
const cookieSession = require('cookie-session');
|
||||
const http = require('http');
|
||||
const logger = require('winston');
|
||||
const requestLogger = require('server/middleware/requestLogger.js');
|
||||
![]() Don't commit this Don't commit this
![]() hmm, the problem is that the server uses jsx for server side rendering, so it needs to be transpiled (I think that's the only part that needs to be transpiled), so I wanted to build a bundle and export that bundle. Do you think I should just transpile with babel and not actual bundle with webpack? That's what I did for spee.ch-components hmm, the problem is that the server uses jsx for server side rendering, so it needs to be transpiled (I think that's the only part that needs to be transpiled), so I wanted to build a bundle and export that bundle. Do you think I should just transpile with babel and not actual bundle with webpack? That's what I did for [spee.ch-components](https://github.com/lbryio/spee.ch-components)
![]() Oh I gotcha. I was confused. I still don't think this needs to be committed. You can build before publishing. IMO if someone is cloning the repo, they will be building the app on their own. Oh I gotcha. I was confused.
I still don't think this needs to be committed. You can build before publishing. IMO if someone is cloning the repo, they will be building the app on their own.
![]() i updated it to only transpile the two jsx render functions that are needed for SSR, the rest does not need to be built at this level, as the implementation will build the app again. i updated it to only transpile the two jsx render functions that are needed for SSR, the rest does not need to be built at this level, as the implementation will build the app again.
|
||||
const requestLogger = require('./server/middleware/requestLogger.js');
|
||||
![]() Don't commit this Don't commit this
![]() hmm, the problem is that the server uses jsx for server side rendering, so it needs to be transpiled (I think that's the only part that needs to be transpiled), so I wanted to build a bundle and export that bundle. Do you think I should just transpile with babel and not actual bundle with webpack? That's what I did for spee.ch-components hmm, the problem is that the server uses jsx for server side rendering, so it needs to be transpiled (I think that's the only part that needs to be transpiled), so I wanted to build a bundle and export that bundle. Do you think I should just transpile with babel and not actual bundle with webpack? That's what I did for [spee.ch-components](https://github.com/lbryio/spee.ch-components)
![]() Oh I gotcha. I was confused. I still don't think this needs to be committed. You can build before publishing. IMO if someone is cloning the repo, they will be building the app on their own. Oh I gotcha. I was confused.
I still don't think this needs to be committed. You can build before publishing. IMO if someone is cloning the repo, they will be building the app on their own.
![]() i updated it to only transpile the two jsx render functions that are needed for SSR, the rest does not need to be built at this level, as the implementation will build the app again. i updated it to only transpile the two jsx render functions that are needed for SSR, the rest does not need to be built at this level, as the implementation will build the app again.
|
||||
const Path = require('path');
|
||||
const loggerConfig = require('./config/loggerConfig.js');
|
||||
const mysqlConfig = require('./config/mysqlConfig.js');
|
||||
|
|
|||
![]() Don't commit this Don't commit this
![]() hmm, the problem is that the server uses jsx for server side rendering, so it needs to be transpiled (I think that's the only part that needs to be transpiled), so I wanted to build a bundle and export that bundle. Do you think I should just transpile with babel and not actual bundle with webpack? That's what I did for spee.ch-components hmm, the problem is that the server uses jsx for server side rendering, so it needs to be transpiled (I think that's the only part that needs to be transpiled), so I wanted to build a bundle and export that bundle. Do you think I should just transpile with babel and not actual bundle with webpack? That's what I did for [spee.ch-components](https://github.com/lbryio/spee.ch-components)
![]() Oh I gotcha. I was confused. I still don't think this needs to be committed. You can build before publishing. IMO if someone is cloning the repo, they will be building the app on their own. Oh I gotcha. I was confused.
I still don't think this needs to be committed. You can build before publishing. IMO if someone is cloning the repo, they will be building the app on their own.
![]() i updated it to only transpile the two jsx render functions that are needed for SSR, the rest does not need to be built at this level, as the implementation will build the app again. i updated it to only transpile the two jsx render functions that are needed for SSR, the rest does not need to be built at this level, as the implementation will build the app again.
![]() Don't commit this Don't commit this
![]() hmm, the problem is that the server uses jsx for server side rendering, so it needs to be transpiled (I think that's the only part that needs to be transpiled), so I wanted to build a bundle and export that bundle. Do you think I should just transpile with babel and not actual bundle with webpack? That's what I did for spee.ch-components hmm, the problem is that the server uses jsx for server side rendering, so it needs to be transpiled (I think that's the only part that needs to be transpiled), so I wanted to build a bundle and export that bundle. Do you think I should just transpile with babel and not actual bundle with webpack? That's what I did for [spee.ch-components](https://github.com/lbryio/spee.ch-components)
![]() Oh I gotcha. I was confused. I still don't think this needs to be committed. You can build before publishing. IMO if someone is cloning the repo, they will be building the app on their own. Oh I gotcha. I was confused.
I still don't think this needs to be committed. You can build before publishing. IMO if someone is cloning the repo, they will be building the app on their own.
![]() i updated it to only transpile the two jsx render functions that are needed for SSR, the rest does not need to be built at this level, as the implementation will build the app again. i updated it to only transpile the two jsx render functions that are needed for SSR, the rest does not need to be built at this level, as the implementation will build the app again.
|
Don't commit this