Skip to content

Commit

Permalink
common_js: Change order of exports (#1057)
Browse files Browse the repository at this point in the history
swc_ecma_transforms:
 - Update order of imports and exports (#1043)
  • Loading branch information
kdy1 authored Sep 11, 2020
1 parent aec155b commit dc4c92c
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 74 deletions.
2 changes: 1 addition & 1 deletion ecmascript/transforms/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_transforms"
repository = "https://github.com/swc-project/swc.git"
version = "0.23.7"
version = "0.23.8"

[features]
const-modules = ["dashmap"]
Expand Down
2 changes: 1 addition & 1 deletion ecmascript/transforms/src/modules/common_js.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ impl Fold for CommonJs {
.into(),
);
} else {
stmts.push(
extra_stmts.push(
define_property(vec![
quote_ident!("exports").as_arg(),
{
Expand Down
Loading

0 comments on commit dc4c92c

Please sign in to comment.