These are chat archives for stealjs/steal

11th
Aug 2015
Alexis Abril
@alexisabril
Aug 11 2015 11:59
@matthewp What’s the right way to format a system.main path for the bower plugin?
example: “main”: “foo”; when consumed this bower plugin will look for bower_components/yourBowerPlugin/foo.js
however, “main”: “dist/foo” will look for /dist/foo.js instead of /bower_components/yourBowerPlugin/dist/foo.js
Alexis Abril
@alexisabril
Aug 11 2015 12:07
oh, the first works because of steal’s bower plugin itself. “foo” turns into the relative path -> “bower_components/foo"
Matthew Phillips
@matthewp
Aug 11 2015 12:48
not sure why main of dist/foo is not looking inside of bower_components, that doesn't seem right at all.
I wonder if there is another config messing with it maybe?
Justin Meyer
@justinbmeyer
Aug 11 2015 22:10
@saireddy Just saw this. Haven't been on gitter.
@daffl any ideas about his testee questions?
do we have a testee room?
@whitecolor They changed it because people find the concept of module id's confusing
specifically, if I did something like require("foo")
David Luecke
@daffl
Aug 11 2015 22:12
I don't think so. But @saireddy you can turn on debug mode (https://github.com/bitovi/testee#debugging) to get more info. It most likely couldn't start the browser.
Justin Meyer
@justinbmeyer
Aug 11 2015 22:12
which mapped to foo/index.js
they expected to be able to write require("./bar") and have that load foo/bar.js
but this sorta thing is sorta impossible w/ moduleNames
but imo, that confusion ... which only has to really happen on behalf of an author of a module, is worth the benefits of module names
I wrote up a reply to this, but I'm not sure what happened to it .. it's in the whatwg issues somewhere
Matthew Phillips
@matthewp
Aug 11 2015 22:14
nothing happened, once jrburke comment the spec authors went silent
Justin Meyer
@justinbmeyer
Aug 11 2015 22:17
yeah, so dumb
so, I imagine at some point, we are going to have to add a normalize hook to what they did
Matthew Phillips
@matthewp
Aug 11 2015 22:18
yeah
Justin Meyer
@justinbmeyer
Aug 11 2015 22:18
so we can use the latest system
Matthew Phillips
@matthewp
Aug 11 2015 22:18
and in each hook you'll translate the url to the real id
Justin Meyer
@justinbmeyer
Aug 11 2015 22:18
and be backwards compat
what is the hook now?
Matthew Phillips
@matthewp
Aug 11 2015 22:19
the name?
Justin Meyer
@justinbmeyer
Aug 11 2015 22:19
we have to split whatever that "super" hook is into our normalize + locate
yeah
Matthew Phillips
@matthewp
Aug 11 2015 22:19
resolve
Justin Meyer
@justinbmeyer
Aug 11 2015 22:19
yeah
Matthew Phillips
@matthewp
Aug 11 2015 22:19
right
Justin Meyer
@justinbmeyer
Aug 11 2015 22:19
super frustrating though
Matthew Phillips
@matthewp
Aug 11 2015 22:19
there is also no load object
you only get the key and a metadata object
Justin Meyer
@justinbmeyer
Aug 11 2015 22:19
is that we did all this work to make it so people can migrate off steal
this is why I think we should encourage CJS
and why we should write most of our stuff in CJS
the donejs guide sorta worries me for this reason
but I think it will still be a long time
until ES modules land
Matthew Phillips
@matthewp
Aug 11 2015 22:21
yes, i would expect end of 2016