Remove functions Rollup config
This commit is contained in:
parent
397a9f8915
commit
043cb8ec14
|
@ -96,70 +96,5 @@ const server = {
|
|||
})
|
||||
]
|
||||
};
|
||||
// const fnsPkg = require('./functions/package.json');
|
||||
|
||||
// const fnsDeps = (dev
|
||||
// ? Object.keys(fnsPkg.dependencies).concat(
|
||||
// Object.keys(fnsPkg.devDependencies || {})
|
||||
// )
|
||||
// : Object.keys(fnsPkg.dependencies)
|
||||
// ).concat('react-dom/server');
|
||||
|
||||
// const functions = [
|
||||
// {
|
||||
// external: id => true,
|
||||
// input: path.resolve(__dirname, 'modules/functions/index.js'),
|
||||
// output: { file: 'functions/index.js', format: 'cjs' },
|
||||
// plugins: [
|
||||
// babel(),
|
||||
// json(),
|
||||
// replace({
|
||||
// 'process.env.NODE_ENV': JSON.stringify(env)
|
||||
// })
|
||||
// ]
|
||||
// }
|
||||
// ].concat(
|
||||
// [
|
||||
// // 'serveAuth',
|
||||
// 'serveMainPage',
|
||||
// 'serveNpmPackageFile',
|
||||
// 'servePublicKey',
|
||||
// 'serveStats'
|
||||
// ].map(functionName => {
|
||||
// return {
|
||||
// external: builtinModules.concat(fnsDeps),
|
||||
// input: path.resolve(__dirname, `modules/functions/${functionName}.js`),
|
||||
// output: { file: `functions/${functionName}.js`, format: 'cjs' },
|
||||
// plugins: [
|
||||
// manifest.inject({ virtualId: 'entry-manifest' }),
|
||||
// babel({ exclude: /node_modules/ }),
|
||||
// json(),
|
||||
// resolve(),
|
||||
// commonjs(),
|
||||
// url({
|
||||
// limit: 5 * 1024,
|
||||
// publicPath: '/_client/',
|
||||
// emitFiles: false
|
||||
// }),
|
||||
// replace({
|
||||
// 'process.env.CLOUDFLARE_EMAIL': JSON.stringify(
|
||||
// process.env.CLOUDFLARE_EMAIL
|
||||
// ),
|
||||
// 'process.env.CLOUDFLARE_KEY': JSON.stringify(
|
||||
// process.env.CLOUDFLARE_KEY
|
||||
// ),
|
||||
// 'process.env.DEBUG': JSON.stringify(process.env.DEBUG),
|
||||
// 'process.env.NODE_ENV': JSON.stringify(env),
|
||||
// 'process.env.NPM_REGISTRY_URL': JSON.stringify(
|
||||
// process.env.NPM_REGISTRY_URL
|
||||
// ),
|
||||
// 'process.env.ORIGIN': JSON.stringify(process.env.ORIGIN),
|
||||
// 'process.env.SECRET_KEY': JSON.stringify(secretKey)
|
||||
// })
|
||||
// ]
|
||||
// };
|
||||
// })
|
||||
// );
|
||||
|
||||
// module.exports = client.concat(functions);
|
||||
module.exports = client.concat(server);
|
||||
|
|
Loading…
Reference in New Issue