Commit 39f4cf0
Proposed update from require.ensure() to import()
Hello,
I just started investigating in this area so let me know if my assumptions are wrong. The [Webpack documentation](https://webpack.js.org/guides/code-splitting-async/) linked here states:
```
webpack supports two similar techniques to achieve this goal: using import() (preferred, ECMAScript proposal) and require.ensure() (legacy, webpack specific).
```
I was able to make `import()` work with a very simple change. I'm taking the assumption that we'd update this documentation to take the current preferred method.1 parent fd2fb67 commit 39f4cf0
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments