GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Incorrect emit when using external module import in JSX tag · Issue #3674 · microsoft/TypeScript Closed Labels BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue Milestone DescriptionFrom Prabir Shrestha (@prabirshrestha) (thanks!) at #3564 (comment) Tried building tsc locally and running this. jake LKG node ..\bin\tsc.js --jsx react -m umd -t es5 app.tsx button.tsx app.tsx: /// <references file="./react.d.ts"/> import * as React from 'react'; import { Button } from './button'; export class App extends React.Component<any, any> { render() { return <Button />; } } button.tsx import * as React from 'react'; export class Button extends React.Component<any, any> { render() { return <button>Some button</button>; } } The output /// <references file="./react.d.ts"/> var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; (function (deps, factory) { if (typeof module === 'object' && typeof module.exports === 'object') { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === 'function' && define.amd) { define(deps, factory); } })(["require", "exports", 'react'], function (require, exports) { var React = require('react'); var App = (function (_super) { __extends(App, _super); function App() { _super.apply(this, arguments); } App.prototype.render = function () { return React.createElement(button_1.Button, null); }; return App; })(React.Component); exports.App = App; }); This makes Activity
MetadataMetadataAssigneesLabelsBugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |