Question · JavaScript and TypeScript course · Module 9: Design Patterns and Architecture
The sideEffects Field in package.json
What is the role of the sideEffects field in package.json?
Answer options
- It informs the bundler that modules have no side effects, enabling removal of unused code
- It specifies a list of scripts run automatically after package installation
- It defines environment variables required by the package
- It indicates files that should be ignored by the version control system
You can check the correct answer by solving this task in the CodeWorlds game.