Skip to content

Commit a286eb0

Browse files
committed
don't export 2235default
1 parent 4617cbf commit a286eb0

8 files changed

+2
-9
lines changed

jscomp/core/js_dump_import_export.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ let exports cxt f (idents : Ident.t list) =
5050
( cxt,
5151
if id_name = default_export then
5252
(* TODO check how it will affect AMDJS*)
53-
esModule :: (default_export, str) :: (s, str) :: acc
53+
esModule :: (default_export, str) :: acc
5454
else (s, str) :: acc ))
5555
in
5656
P.at_least_two_lines f;
@@ -77,7 +77,7 @@ let es6_export cxt f (idents : Ident.t list) =
7777
let str, cxt = Ext_pp_scope.str_of_ident cxt id in
7878
( cxt,
7979
if id_name = default_export then
80-
(default_export, str) :: (s, str) :: acc
80+
(default_export, str) :: acc
8181
else (s, str) :: acc ))
8282
in
8383
P.at_least_two_lines f;

jscomp/test/default_export_test.js

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/test/es6_export.js

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/test/es6_export.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
var $$default = 3;
55

66
export {
7-
$$default ,
87
$$default as default,
98
}
109
/* No side effect */

jscomp/test/escape_esmodule.js

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/test/key_word_property.js

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/es6/js_option.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ export {
9696
andThen ,
9797
map ,
9898
getWithDefault ,
99-
$$default ,
10099
$$default as default,
101100
filter ,
102101
firstSome ,

lib/js/js_option.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ exports.equal = equal;
9595
exports.andThen = andThen;
9696
exports.map = map;
9797
exports.getWithDefault = getWithDefault;
98-
exports.$$default = $$default;
9998
exports.default = $$default;
10099
exports.__esModule = true;
101100
exports.filter = filter;

0 commit comments

Comments
 (0)