2

I have a bunch of modules which I want to import into my main file (im working with browserify).

Now I have about 30 folders with modules in them, and it seems redundant to just type out every import for them. Let's assume for now that I don't know all the folder names in my packages folder.

So I was thinking about something like this:

import * as actions from '../packages/**/*.actions.js'

But this give me an error that it can't find any modules... I've looked at some implementations in combination with Systemjs, but this doesn't fit me well.

Martijn.Veenstra
  • 121
  • 1
  • 2
  • 7

0 Answers0