# Snapshot report for `test/side-effects.js`

The actual snapshot is saved in `side-effects.js.snap`.

Generated by [AVA](https://avajs.dev).

## respects the package.json sideEffects property for files in root package by default

> Snapshot 1

    `'use strict';␊
    ␊
    console.log('main');␊
    `

## respects the package.json sideEffects when commonjs plugin is used

> Snapshot 1

    `'use strict';␊
    ␊
    console.log('main');␊
    `

## respects the package.json sideEffects when when another plugin uses this.load it its resolveId hook

> Snapshot 1

    `'use strict';␊
    ␊
    console.log('main');␊
    `

## respects the package.json sideEffects property for files in the root package and supports deep side effects

> Snapshot 1

    `'use strict';␊
    ␊
    console.log('deep side effect');␊
    ␊
    console.log('shallow side effect');␊
    ␊
    console.log('main');␊
    `

## does not prefix the sideEffects property if the side effect contains a "/"

> Snapshot 1

    `'use strict';␊
    ␊
    console.log('shallow side effect');␊
    ␊
    console.log('main');␊
    `

## ignores the package.json sideEffects property for files in root package with "ignoreSideEffectsForRoot" option

> Snapshot 1

    `'use strict';␊
    ␊
    console.log('side effect');␊
    ␊
    console.log('main');␊
    `

## handles package side-effects

> Snapshot 1

    [
      'array-dep1',
      'array-dep3',
      'array-dep5',
      'array-index',
      'false-dep1',
      'true-dep1',
      'true-dep2',
      'true-index',
    ]
