Add a config to control no import or export define file types only work in local, not pollute global types. #45353
Closed
4 tasks done
Labels
Duplicate
An existing issue was already created
Suggestion
π Search Terms
scoped module config
β Viability Checklist
My suggestion meets these guidelines:
β Suggestion
Add a config to control file type work in global scope or module scope.
π Motivating Example
In official docs module
This means not use export or import in the file, the file's type will work globally. Sometimes we need no import or export file types just work in the current file don't pollute the environment globally. For example:
export {}
to hack this.type Fooxx
to avoid name collesion or use likeexport {}
to hack this.I want there is some way to control which file or directory type will be not working globally. some config like
I found there is some config that can control umd export work in global allowUmdGlobalAccess, So I think this feature will also can control by config.
π» Use Cases
see previous example
The text was updated successfully, but these errors were encountered: