Skip to content

Commit 84456e5

Browse files
committed
in order to generate named exports
1 parent 362fccb commit 84456e5

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

packages/webchannel-wrapper/src/index.js

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2017 Google Inc.
3+
* Copyright 2017 Google LLC
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
@@ -74,15 +74,9 @@ goog.net.XhrIo.prototype['getResponseText'] =
7474
goog.net.XhrIo.prototype.getResponseText;
7575
goog.net.XhrIo.prototype['send'] = goog.net.XhrIo.prototype.send;
7676

77-
/**
78-
* This ignore statement is required as closure will minify these properties
79-
* if done in the typical prettier format
80-
*/
81-
// prettier-ignore
82-
module['exports'] = {
83-
'createWebChannelTransport': goog.net.createWebChannelTransport,
84-
'ErrorCode': goog.net.ErrorCode,
85-
'EventType': goog.net.EventType,
86-
'WebChannel': goog.net.WebChannel,
87-
'XhrIo': goog.net.XhrIo
88-
};
77+
module['exports']['createWebChannelTransport'] =
78+
goog.net.createWebChannelTransport;
79+
module['exports']['ErrorCode'] = goog.net.ErrorCode;
80+
module['exports']['EventType'] = goog.net.EventType;
81+
module['exports']['WebChannel'] = goog.net.WebChannel;
82+
module['exports']['XhrIo'] = goog.net.XhrIo;

0 commit comments

Comments
 (0)