commit
680d49eae4
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,7 @@ Build tools do the following:
|
||||||
- Unused exports removed ("tree-shaking").
|
- Unused exports removed ("tree-shaking").
|
||||||
- Development-specific statements like `console` and `debugger` removed.
|
- Development-specific statements like `console` and `debugger` removed.
|
||||||
- Modern, bleeding-edge JavaScript syntax may be transformed to older one with similar functionality using [Babel](https://babeljs.io/).
|
- Modern, bleeding-edge JavaScript syntax may be transformed to older one with similar functionality using [Babel](https://babeljs.io/).
|
||||||
- The resulting file is minified (spaces removed, variables replaced with shorter named etc).
|
- The resulting file is minified (spaces removed, variables replaced with shorter names, etc).
|
||||||
|
|
||||||
If we use bundle tools, then as scripts are bundled together into a single file (or few files), `import/export` statements inside those scripts are replaced by special bundler functions. So the resulting "bundled" script does not contain any `import/export`, it doesn't require `type="module"`, and we can put it into a regular script:
|
If we use bundle tools, then as scripts are bundled together into a single file (or few files), `import/export` statements inside those scripts are replaced by special bundler functions. So the resulting "bundled" script does not contain any `import/export`, it doesn't require `type="module"`, and we can put it into a regular script:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue