-
-
Save BigAB/c108bb0860c9cfee3d6a to your computer and use it in GitHub Desktop.
Using Bower and Steal to load the ES6-Collections repo as a global module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "bower-steal-es6-collections", | |
"version": "0.0.0", | |
"private": true, | |
"dependencies": { | |
"es6-collections": "git://github.com/WebReflection/es6-collections.git", | |
"jquery": "~2.1.4", | |
"steal": "~0.10.5" | |
}, | |
"system": { | |
"paths": { | |
"es6-collections": "bower_components/es6-collections/index.js" | |
}, | |
"meta": { | |
"es6-collections": { | |
"format": "global" | |
} | |
}, | |
"bowerIgnore": ["es6-collections"] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<script src="bower_components/steal/steal.js" main="main"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import $ from 'jquery'; | |
import 'es6-collections'; | |
let myMap = new Map(); | |
let myKey = {}; | |
myMap.set(myKey, '<h1>Hello ES6 World</h1>'); | |
$(()=>{ | |
$('body').append(myMap.get(myKey)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm new about StealJS and here I've found a good working example ... thanks.
But this does not work with the latest StealJS ... can you help me to fix it?