Skip to content

Commit d916b69

Browse files
docs(side-effects): improve template.md
1 parent 06b9222 commit d916b69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/side-effects/template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This example shows how the `sideEffects` flag for library authors works.
1+
This example shows how the `sideEffects` flag works for library authors.
22

33
The example contains a large library, `big-module`. `big-module` contains multiple child modules: `a`, `b` and `c`. The exports from the child modules are re-exported in the entry module (`index.js`) of the library. A consumer uses **some** of the exports, importing them from the library via `import { a, b } from "big-module"`. According to the EcmaScript spec, all child modules _must_ be evaluated because they could contain side effects.
44

0 commit comments

Comments
 (0)