- Notifications
You must be signed in to change notification settings - Fork3.9k
tiny changes: spelling and consistency#3416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -63,7 +63,7 @@ export {sayHi, sayBye}; // a list of exported variables | ||
...Or, technically we could put `export` above functions as well. | ||
## Import"*" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. disagree. all footnotes are signified with | ||
Usually, we put a list of what to import in curly braces `import {...}`, like this: | ||
@@ -99,7 +99,7 @@ Well, there are few reasons. | ||
```smart header="Don't be afraid to import too much" | ||
Modern build tools, such as [webpack](https://webpack.js.org/) and others, bundle modules together and optimize them to speedup loading. They also removed unused imports. | ||
For instance, if you `import * as library` from a huge code library, and then use only few methods, then unused ones [will not be included](https://github.com/webpack/webpack/tree/main/examples/harmony-unused#examplejs) into theoptimized bundle. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. duplicate of#3413 | ||
``` | ||
## Import "as" | ||