Skip to content

Instantly share code, notes, and snippets.

@mariusGundersen
Created June 9, 2014 20:05
Show Gist options
  • Save mariusGundersen/36c3de52052d8b36d375 to your computer and use it in GitHub Desktop.
Save mariusGundersen/36c3de52052d8b36d375 to your computer and use it in GitHub Desktop.
Potential module import syntax in ES6
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";
@tutuca
Copy link

tutuca commented Feb 11, 2016

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