Created
June 9, 2014 20:05
-
-
Save mariusGundersen/36c3de52052d8b36d375 to your computer and use it in GitHub Desktop.
Potential module import syntax in ES6
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
module _ from "underscore"; | |
import _ from "underscore"; | |
import module _ from "underscore"; | |
import {each, map, find} from "underscore"; | |
import "underscore"; | |
import default _ from "underscore"; | |
const _ = System.import("underscore"); | |
import "underscore" as _; | |
import {_} from "underscore"; | |
import {each as forEach} from "underscore"; | |
import _, {each, map, find as locate} from "underscore"; |
None of:
import _ from 'underscore';
import { _ } from 'underscore';
Is allowing me to user _
in the command console.
import $ from 'jquery';
Works as expected.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
well now, these are just all of the different suggestions over time, not all of these are in the spec