Skip to content

Get exported function from server's entry file #60

Open
@ilyaagarkov

Description

@ilyaagarkov

Hi!

I have a misunderstanding about how I can export render functions from a server file
I get empty object from res.locals.isomorphic.exports

config for server

const server = {
  mode: 'development',
  entry:'./src/server.js',
  output: {
    path: '/',
    publicPath: 'http://localhost:3000/scripts/',
    filename: `server.bundle.js`,
  },
  module: {
    rules: [js]
  },

}

server.js

export const fun =() => console.log('!!!!!!')

export default {
  foo: () => {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions