Create a gist now

Instantly share code, notes, and snippets.

@denkiwakame /app.js Secret
Last active Dec 28, 2016

What would you like to do?
変換例
"use strict";
var m = require("./module");
var ol = new m.OL();
import * as m from "./module";
var ol = new m.OL();
"use strict";
var OL = (function () {
function OL() {
this.name = "megumi";
}
return OL;
}());
exports.OL = OL;
export class OL {
name: string;
constructor() { this.name = "megumi"; }
}
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
"use strict";
var m = require("./module");
var ol = new m.OL();
},{"./module":2}],2:[function(require,module,exports){
"use strict";
var OL = (function () {
function OL() {
this.name = "megumi";
}
return OL;
}());
exports.OL = OL;
},{}]},{},[1]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment