Skip to content

Commit d236434

Browse files
committed
Add Q&A regarding import
1 parent 50416f9 commit d236434

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

FAQ.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* [Why reimplement module functionality already available on npm?](#reimplementing-existing-packages)
1515
* [Backward compatibility?](#backward-compatibility)
1616
* [Why use semicolons?](#semicolons)
17+
* [Import support?](#import-support)
1718
* [Promise support?](#promise-support)
1819
* [ES2015 and beyond?](#es2015)
1920
* [Why a monorepo?](#monorepo)
@@ -278,6 +279,30 @@ For the following reasons:
278279
<!-- </faq-question> -->
279280

280281

282+
<!-- <faq-question> -->
283+
284+
---
285+
286+
<a name="import-support"></a>
287+
288+
### Import support?
289+
290+
No. This stance may be reevaluated when the following conditions are met:
291+
292+
1. The specification has finalized.
293+
1. The specification is widely and consistently implemented.
294+
1. Node.js provides official support.
295+
1. Inclusion maintains backward compatibility with earlier Node.js versions and non-ES2015 environments.
296+
1. Inclusion does not require a transpiler toolchain.
297+
298+
299+
#### But what about tree shaking?
300+
301+
Tree shaking (i.e., removing unused symbols) treats the symptom, not the disease. A disciplined emphasis on modularity and crafting implementations which do one thing and do one thing well obviates the need for removing unused symbols.
302+
303+
<!-- </faq-question> -->
304+
305+
281306
<!-- <faq-question> -->
282307

283308
---

0 commit comments

Comments
 (0)