These are chat archives for brunch/brunch

30th
May 2016
Amitava Ghosh
@aghosh47
May 30 2016 05:31
Hi, I am trying to use brunch for my react application. previously it had gulp .. here are the relevant files and information http://pastie.org/10857642
The problem is the resulting app.js is being loaded like head.appendChhild(script) .. but the console.log http://pastie.org/10857642#123 is never printed
although in the network panel in the app.js file the line is present .. what am not doing?
Amitava Ghosh
@aghosh47
May 30 2016 05:41
ok I had to do a wrapper: false, but is there something wrong with the pattern in plugins .. because all the exports and inports are not getting transpiled
and I get an error exports is not defined
Amitava Ghosh
@aghosh47
May 30 2016 05:56
I did a require('lib/js/init.js') and now react throws property invalidation errors .. this is so uncoool
Amitava Ghosh
@aghosh47
May 30 2016 06:04
http://stackoverflow.com/questions/34130539/ well according to this, if I don't do a wrapper: false, I will have to do .default in the import statement everywherre I guess .. so what is the solution
Amitava Ghosh
@aghosh47
May 30 2016 06:12
ok changed the require() statements to import looks good now
Gosha Arinich
@goshakkk
May 30 2016 10:30
for third party libraries, you can put them into vendor directory to avoid the wrapping and such. or a one time require as suggested, though this is more applicable if the third party lib comes from npm