Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

allow main array for packages #1

Closed
guybedford opened this issue Nov 8, 2013 · 1 comment
Closed

allow main array for packages #1

guybedford opened this issue Nov 8, 2013 · 1 comment

Comments

@guybedford
Copy link
Member

Consider bootstrap for example, it should be possible to load the js file without getting all the css.

Thus if we could define:

package.json:

{
  "main": ["js/bootstrap", "css/bootrap.css!"]
}

Then we would have:

  jspm.import('bootstrap'); // loads css + js
  jspm.import('bootstrap/js/bootstrap'); // loads just the js
@guybedford
Copy link
Member Author

This doesn't make sense for a few reasons:

  1. We no longer have simple pointer modules, but would need AMD exceptions. Or we have to have a new dummy main which is created.
  2. It is not clear which item in the array is the exported value itself. Perhaps the first one could be the convention.

But I think this should have some stronger use cases before actioning.

guybedford pushed a commit that referenced this issue Oct 8, 2014
guybedford pushed a commit that referenced this issue Feb 1, 2015
guybedford pushed a commit that referenced this issue Mar 24, 2015
Updating to the latest registry
guybedford pushed a commit that referenced this issue Feb 3, 2016
guybedford pushed a commit that referenced this issue Feb 14, 2016
Update to latest changes
guybedford pushed a commit that referenced this issue Mar 16, 2016
guybedford pushed a commit that referenced this issue Apr 28, 2016
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