Skip to content

Commit

Permalink
feat(manifest:npm:esm): add sideeffects key, set to false
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleygwilliams committed Sep 18, 2018
1 parent 20239ec commit 195c4e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/manifest/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ impl CargoManifest {
files: files,
module: js_file,
types: dts_file,
sideEffects: "false".to_string(),
})
}
}
Expand Down
1 change: 1 addition & 0 deletions src/manifest/npm/esmodules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ pub struct ESModulesPackage {
pub module: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub types: Option<String>,
pub sideEffects: String,
}

0 comments on commit 195c4e1

Please sign in to comment.