From 1f7a4b957462e9ed44050107b6fb4292fc687e5c Mon Sep 17 00:00:00 2001 From: Stephanie Coates Date: Tue, 29 Sep 2020 00:26:34 -0700 Subject: [PATCH] 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. --- content/docs/code-splitting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/code-splitting.md b/content/docs/code-splitting.md index cc9d745f..44e75860 100644 --- a/content/docs/code-splitting.md +++ b/content/docs/code-splitting.md @@ -103,7 +103,7 @@ If you're setting up Webpack yourself, you'll probably want to read Webpack's [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). When using [Babel](https://babeljs.io/), you'll need to make sure that Babel can -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). +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). ## `React.lazy` {#reactlazy}