| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9fda912 commit 6168bd5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -518,7 +518,7 @@ would be usable by any version of Node.js, since `import` can refer to CommonJS | |||
| 518 | 518 | files; but it would not provide any of the advantages of using ES module syntax. | |
| 519 | 519 | ||
| 520 | 520 | A package could also switch from CommonJS to ES module syntax in a breaking | |
| 521 | - change version bump. This has the obvious disadvantage that the newest version | ||
| 521 | + change version bump. This has the disadvantage that the newest version | ||
| 522 | 522 | of the package would only be usable in ES module-supporting versions of Node.js. | |
| 523 | 523 | ||
| 524 | 524 | Every pattern has tradeoffs, but there are two broad approaches that satisfy the | |
@@ -1341,7 +1341,7 @@ JavaScript using the [`transformSource` hook][]. Before that hook gets called, | |||
| 1341 | 1341 | however, other hooks need to tell Node.js not to throw an error on unknown file | |
| 1342 | 1342 | types; and to tell Node.js how to load this new file type. | |
| 1343 | 1343 | ||
| 1344 | - This is obviously less performant than transpiling source files before running | ||
| 1344 | + This is less performant than transpiling source files before running | ||
| 1345 | 1345 | Node.js; a transpiler loader should only be used for development and testing | |
| 1346 | 1346 | purposes. | |
| 1347 | 1347 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments