Skip to content

Commit 31db753

Browse files
committed
Remove default ES6 exports
TypeScript 1.8 doesn't correctly transpile default ES6 exports when targeting ES6 + CommonJS. This is a known issue and there's a pending PR to fix it (microsoft/TypeScript#5648). Until then I'm going to make do without default exports.
1 parent babe33d commit 31db753

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

src/main-process/application-window.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface IApplicationWindowOpenParams {
88
windowUrl: string;
99
}
1010

11-
export default class ApplicationWindow {
11+
export class ApplicationWindow {
1212
private _browserWindow: GitHubElectron.BrowserWindow;
1313

1414
open({ windowUrl }: IApplicationWindowOpenParams): void {

src/main-process/application.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
// MIT License, see LICENSE file for full terms.
33

44
import * as url from 'url';
5-
import ApplicationWindow from './application-window';
5+
import { ApplicationWindow } from './application-window';
66
import { AppProtocolHandler } from './protocol-handlers';
77

88
export interface IApplicationArgs {
99
/** Path to the root directory of the application. */
1010
rootPath: string;
1111
}
1212

13-
export default class Application {
13+
export class Application {
1414
private _window: ApplicationWindow;
1515
private _appProtocolHandler: AppProtocolHandler;
1616

src/main-process/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import * as app from 'app';
55
import * as BrowserWindow from 'browser-window';
66
import * as path from 'path';
7-
import Application from './application';
7+
import { Application } from './application';
88

99
//require('crash-reporter').start();
1010

src/renderer-process/elements/element-factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface IElementMapEntry {
2121
* by the `register-element` custom element, and the element constructor is stored in the
2222
* factory.
2323
*/
24-
export default class ElementFactory {
24+
export class ElementFactory {
2525
private elements = new Map</* tagName: */string, IElementMapEntry>();
2626

2727
/**

src/renderer-process/elements/register-element/register-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import * as pd from 'polymer-ts-decorators';
55
import * as url from 'url';
66
import * as path from 'path';
7-
import RendererContext from '../../renderer-context';
7+
import { RendererContext } from '../../renderer-context';
88

99
// TODO: Consider eliminating the dependency on Polymer, this element is very simple and doesn't
1010
// really need any of the features Polymer provides.

src/renderer-process/init-window.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) 2015 Vadim Macagon
22
// MIT License, see LICENSE file for full terms.
33

4-
import RendererContext from './renderer-context';
4+
import { RendererContext } from './renderer-context';
55
import * as remote from 'remote';
66

77
window.onload = (e: Event) => {

src/renderer-process/renderer-context.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
// MIT License, see LICENSE file for full terms.
33

44
import * as remote from 'remote';
5-
import ElementFactory from './elements/element-factory';
5+
import { ElementFactory } from './elements/element-factory';
66

77
/**
88
* Singleton that provides access to all core Debug Workbench functionality.
99
*/
10-
export default class RendererContext {
10+
export class RendererContext {
1111
/** Create the renderer context for the current process. */
1212
static create(): Promise<RendererContext> {
1313
return Promise.resolve()

0 commit comments

Comments
 (0)