You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| ES2015 `import`/`export`|**yes** (webpack 2) | no | no |**yes**|**yes**| yes, via [es6 module transpiler](https://github.com/gcollazo/es6-module-transpiler-brunch)|
33
-
| Expressions in require (guided) `require("./templates/" + template)`|**yes (all files matching included)**| no♦ | no | no | no | no |
34
-
| Expressions in require (free) `require(moduleName)`| with manual configuration | no♦ | no | no | no ||
35
-
| Generate a single bundle |**yes**| yes♦ | yes | yes | yes | yes |
36
-
| Indirect require `var r = require; r("./file")`|**yes**| no♦ | no | no | no ||
33
+
| Expressions in require (guided) `require("./templates/" + template)`|**yes (all files matching included)**| no♦ | no | no | no | no |
34
+
| Expressions in require (free) `require(moduleName)`| with manual configuration | no♦ | no | no | no ||
35
+
| Generate a single bundle |**yes**| yes♦ | yes | yes | yes | yes |
36
+
| Indirect require `var r = require; r("./file")`|**yes**| no♦ | no | no | no ||
37
37
| Load each file separate | no | yes | no | yes | no | no |
38
38
| Mangle path names |**yes**| no | partial | yes | not required (path names are not included in the bundle) | no |
Copy file name to clipboardExpand all lines: src/content/configuration/configuration-languages.mdx
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,6 @@ There are three solutions to this issue:
72
72
- Modify `tsconfig.json` and add settings for `ts-node`.
73
73
- Install `tsconfig-paths`.
74
74
75
-
76
75
The **first option** is to open your `tsconfig.json` file and look for `compilerOptions`. Set `target` to `"ES5"` and `module` to `"CommonJS"` (or completely remove the `module` option).
77
76
78
77
The **second option** is to add settings for ts-node:
@@ -82,7 +81,7 @@ You can keep `"module": "ESNext"` for `tsc`, and if you use webpack, or another
Copy file name to clipboardExpand all lines: src/content/contribute/writing-a-plugin.mdx
-7Lines changed: 0 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -314,21 +314,18 @@ Various types of hooks supported are :
314
314
### Synchronous Hooks
315
315
316
316
-**SyncHook**
317
-
318
317
- Defined as `new SyncHook([params])`
319
318
- Tapped into using `tap` method.
320
319
- Called using `call(...params)` method.
321
320
322
321
-**Bail Hooks**
323
-
324
322
- Defined using `SyncBailHook[params]`
325
323
- Tapped into using `tap` method.
326
324
- Called using `call(...params)` method.
327
325
328
326
In these types of hooks, each of the plugin callbacks will be invoked one after the other with the specific `args`. If any value is returned except undefined by any plugin, then that value is returned by hook and no further plugin callback is invoked. Many useful events like `optimizeChunks`, `optimizeChunkModules` are SyncBailHooks.
329
327
330
328
-**Waterfall Hooks**
331
-
332
329
- Defined using `SyncWaterfallHook[params]`
333
330
- Tapped into using `tap` method.
334
331
- Called using `call(...params)` method
@@ -339,7 +336,6 @@ Various types of hooks supported are :
339
336
### Asynchronous Hooks
340
337
341
338
-**Async Series Hook**
342
-
343
339
- Defined using `AsyncSeriesHook[params]`
344
340
- Tapped into using `tap`/`tapAsync`/`tapPromise` method.
345
341
- Called using `callAsync(...params)` method
@@ -348,7 +344,6 @@ Various types of hooks supported are :
348
344
This is also a commonly used pattern for events like `emit`, `run`.
349
345
350
346
-**Async waterfall** The plugins will be applied asynchronously in the waterfall manner.
351
-
352
347
- Defined using `AsyncWaterfallHook[params]`
353
348
- Tapped into using `tap`/`tapAsync`/`tapPromise` method.
354
349
- Called using `callAsync(...params)` method
@@ -357,13 +352,11 @@ Various types of hooks supported are :
357
352
This plugin pattern is expected for events like `before-resolve` and `after-resolve`.
358
353
359
354
-**Async Series Bail**
360
-
361
355
- Defined using `AsyncSeriesBailHook[params]`
362
356
- Tapped into using `tap`/`tapAsync`/`tapPromise` method.
363
357
- Called using `callAsync(...params)` method
364
358
365
359
-**Async Parallel**
366
-
367
360
- Defined using `AsyncParallelHook[params]`
368
361
- Tapped into using `tap`/`tapAsync`/`tapPromise` method.
0 commit comments