Fork me on GitHub
#figwheel-main
<
2018-09-25
>
plexus15:09:05

@bhauman doesn't seem like adding the nodejs build to an :extra-mains is going to work. I added :target :nodejs, but it's failing when trying to find goog/bootstrap/nodejs.js

plexus15:09:23

not a big deal though, we went from five builds to two so that's great 🙂

bhauman15:09:12

hmmm there may be a way to do this

bhauman15:09:40

I wonder if we can add the boostrap file to preloads

bhauman15:09:14

:preloads [goog.bootstrap.nodejs]

plexus15:09:21

worth a try!

bhauman15:09:44

and I know that we can definitely generate it somehow

bhauman15:09:52

inside a prehook

bhauman15:09:02

if that is the only problem

plexus15:09:49

got any pointers of what that would look like?

bhauman16:09:58

@plexus so that didn’t work then?

bhauman16:09:35

hmmm I’m sure its pretty simple I’ll take a look around

bhauman16:09:58

in the compiler, I have to go get some lunch right now but I’ll check on it later

bhauman16:09:06

to do whatever the compiler does to emit the bootstrap namesapce

bhauman16:09:27

this of course may not work because it still doesn’t solve all the things necessary to get things working in node

bhauman17:09:29

@plexus if you are really invested in this, it may be worth some exploration

bhauman19:09:57

@plexus I got it working

parrot 4
bhauman19:09:18

its pretty cool