Commit 1356486
committed
(test): ensure a regenatorRuntime import is added
- when using transform-runtime with helpers: false, it should import
from @babel/runtime/regenerator
- either this plugin configured like this or a direct import of
regenerator in one's own library code is the only way to get it to
be imported
- just using a generator will make regenerator code added, but
without any import (leading to a ReferenceError)
- TODO: make it easier or automatic to use generators
- useBuiltIns of preset-env?1 parent 0c60110 commit 1356486
4 files changed
Lines changed: 14 additions & 1 deletion
File tree
- test/integration
- fixtures/build-withBabel
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
35 | 42 | | |
36 | 43 | | |
37 | 44 | | |
| |||
0 commit comments