1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
# Snapshot report for `test/prefer-builtins.js`
The actual snapshot is saved in `prefer-builtins.js.snap`.
Generated by [AVA](https://ava.li).
## false allows resolving a local module with the same name as a builtin module
> Snapshot 1
[
{
chunkName: 'prefer-builtin',
code: 'EMPTY_BUNDLE',
message: 'Generated an empty chunk: "prefer-builtin"',
toString: Function {},
},
]
## true allows preferring a builtin to a local module of the same name
> Snapshot 1
[
{
code: 'UNRESOLVED_IMPORT',
importer: 'prefer-builtin.js',
message: '\'events\' is imported by prefer-builtin.js, but could not be resolved – treating it as an external dependency',
source: 'events',
toString: Function {},
url: 'https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency',
},
]
## warns when importing builtins
> Snapshot 1
[
{
code: 'UNRESOLVED_IMPORT',
importer: 'builtins.js',
message: '\'path\' is imported by builtins.js, but could not be resolved – treating it as an external dependency',
source: 'path',
toString: Function {},
url: 'https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency',
},
]
|