Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Unclear lesson 13. Follow up questions #274

Closed
i-manolov opened this issue Dec 16, 2016 · 0 comments
Closed

Unclear lesson 13. Follow up questions #274

i-manolov opened this issue Dec 16, 2016 · 0 comments

Comments

@i-manolov
Copy link

Hey folks, why do we want the node modules to be retrieved at run time? Also why specifically concat react-dom/server and react/addons ? What is the purpose of declaring the file names as relative to the context in the node section? I apologize if those are noob questions.

It would be super helpful if those were explained in the tutorial.

  externals: fs.readdirSync(path.resolve(__dirname, 'node_modules')).concat([
    'react-dom/server', 'react/addons',
  ]).reduce(function (ext, mod) {
    ext[mod] = 'commonjs ' + mod
    return ext
  }, {}),

  node: {
    __filename: true,
    __dirname: true
  }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant