Skip to content

Commit 1f7a4b9

Browse files
update @babel/plugin-syntax-dynamic-import link (#3046)
Docs previously linked to https://classic.yarnpkg.com/en/package/babel-plugin-syntax-dynamic-import for Babel 6. Updated link to point to plugin compatible with Babel 7.
1 parent ad695be commit 1f7a4b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/code-splitting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ If you're setting up Webpack yourself, you'll probably want to read Webpack's
103103
[guide on code splitting](https://webpack.js.org/guides/code-splitting/). Your Webpack config should look vaguely [like this](https://gist.github.com/gaearon/ca6e803f5c604d37468b0091d9959269).
104104

105105
When using [Babel](https://babeljs.io/), you'll need to make sure that Babel can
106-
parse the dynamic import syntax but is not transforming it. For that you will need [babel-plugin-syntax-dynamic-import](https://yarnpkg.com/en/package/babel-plugin-syntax-dynamic-import).
106+
parse the dynamic import syntax but is not transforming it. For that you will need [@babel/plugin-syntax-dynamic-import](https://classic.yarnpkg.com/en/package/@babel/plugin-syntax-dynamic-import).
107107

108108
## `React.lazy` {#reactlazy}
109109

0 commit comments

Comments
 (0)