Skill Wiki v0.1.0
anti-pattern @web-style/anti-pattern-import-for-side-effects

Import For Side Effects

Writing `import './polyfills'` or `import 'register-handlers'` to trigger code execution at module load.…

Skill
@web-style
Domain
web-style
Version
0.1.0
Quality
4.0
Edges
2 out · 1 in
Tokens
91/346/600
$ prime install @web-style/anti-pattern-import-for-side-effects

Projection

Always in _index.xml · the agent never has to ask for this.

ImportForSideEffects [anti-pattern] v0.1.0

Writing import './polyfills' or import 'register-handlers' to trigger code execution at module load. The line has no value on the left of from, no symbols are bound, and the import is needed only because evaluating the file does work — registers a handler, patches a prototype, mutates a global.

Source

prime-system/examples/web-style/primes/compiled/@web-style/anti-pattern-import-for-side-effects/atom.yaml

Compiled at 2026-05-10