Closed yesmeck closed 4 years ago
self
and global
are definitely not universal reserved words, but might be considered so in certain environments.
window
and document
while global vars in a browser environment, aren't reserved and are instead "already declared."
I don't think this PR is the right approach, but we might be open to a new feature that allows specifying additional words that should be considered reserved, after the plugin is moved to it's new home at https://github.com/rollup/plugins.
Add
document self window global
to reserved words.