From 445887e571a0d8ee8bc1db558ee73f22f5f6ba17 Mon Sep 17 00:00:00 2001 From: Gunnar Gabrielson Date: Wed, 11 Mar 2020 17:03:23 -0600 Subject: [PATCH] Fix typo, added to versioned docs --- docs/plugin-syntax-dynamic-import.md | 11 +++++++++++ .../version-6.26.3/plugin-syntax-dynamic-import.md | 10 ++++++++++ .../version-7.0.0/plugin-syntax-dynamic-import.md | 10 ++++++++++ .../version-7.4.0/plugin-syntax-dynamic-import.md | 10 ++++++++++ 4 files changed, 41 insertions(+) diff --git a/docs/plugin-syntax-dynamic-import.md b/docs/plugin-syntax-dynamic-import.md index 1dd1834313..c966656f1f 100644 --- a/docs/plugin-syntax-dynamic-import.md +++ b/docs/plugin-syntax-dynamic-import.md @@ -4,6 +4,17 @@ title: @babel/plugin-syntax-dynamic-import sidebar_label: syntax-dynamic-import --- +`@babel/plugin-syntax-dynamic-import` needed to enable parsing for import(). + +In Babel 7.8.0 it's enabled by default, so this plugin shouldn't be needed if you are using `@babel/core@>7.8.0`. + +If you want to transpile import(): + +1. If you are using `@babel/preset-env`, it's automatically handled +2. If you are using Webpack or Rollup, you shouldn't transpile import() with Babel and let the bundler handle it for you +3. Otherwise, you need `@babel/plugin-proposal-dynamic-import` + + ## Installation ```sh diff --git a/website/versioned_docs/version-6.26.3/plugin-syntax-dynamic-import.md b/website/versioned_docs/version-6.26.3/plugin-syntax-dynamic-import.md index 12da68e7c3..32a31e87c7 100644 --- a/website/versioned_docs/version-6.26.3/plugin-syntax-dynamic-import.md +++ b/website/versioned_docs/version-6.26.3/plugin-syntax-dynamic-import.md @@ -5,6 +5,16 @@ sidebar_label: syntax-dynamic-import original_id: babel-plugin-syntax-dynamic-import --- +`@babel/plugin-syntax-dynamic-import` needed to enable parsing for import(). + +In Babel 7.8.0 it's enabled by default, so this plugin shouldn't be needed if you are using `@babel/core@>7.8.0`. + +If you want to transpile import(): + +1. If you are using `@babel/preset-env`, it's automatically handled +2. If you are using Webpack or Rollup, you shouldn't transpile import() with Babel and let the bundler handle it for you +3. Otherwise, you need `@babel/plugin-proposal-dynamic-import` + ## Installation ```sh diff --git a/website/versioned_docs/version-7.0.0/plugin-syntax-dynamic-import.md b/website/versioned_docs/version-7.0.0/plugin-syntax-dynamic-import.md index 369dee4966..d417a6ce56 100644 --- a/website/versioned_docs/version-7.0.0/plugin-syntax-dynamic-import.md +++ b/website/versioned_docs/version-7.0.0/plugin-syntax-dynamic-import.md @@ -5,6 +5,16 @@ sidebar_label: syntax-dynamic-import original_id: babel-plugin-syntax-dynamic-import --- +`@babel/plugin-syntax-dynamic-import` needed to enable parsing for import(). + +In Babel 7.8.0 it's enabled by default, so this plugin shouldn't be needed if you are using `@babel/core@>7.8.0`. + +If you want to transpile import(): + +1. If you are using `@babel/preset-env`, it's automatically handled +2. If you are using Webpack or Rollup, you shouldn't transpile import() with Babel and let the bundler handle it for you +3. Otherwise, you need `@babel/plugin-proposal-dynamic-import` + ## Installation ```sh diff --git a/website/versioned_docs/version-7.4.0/plugin-syntax-dynamic-import.md b/website/versioned_docs/version-7.4.0/plugin-syntax-dynamic-import.md index f5e011ab1d..eb8ccf872e 100644 --- a/website/versioned_docs/version-7.4.0/plugin-syntax-dynamic-import.md +++ b/website/versioned_docs/version-7.4.0/plugin-syntax-dynamic-import.md @@ -5,6 +5,16 @@ sidebar_label: syntax-dynamic-import original_id: babel-plugin-syntax-dynamic-import --- +`@babel/plugin-syntax-dynamic-import` needed to enable parsing for import(). + +In Babel 7.8.0 it's enabled by default, so this plugin shouldn't be needed if you are using `@babel/core@>7.8.0`. + +If you want to transpile import(): + +1. If you are using `@babel/preset-env`, it's automatically handled +2. If you are using Webpack or Rollup, you shouldn't transpile import() with Babel and let the bundler handle it for you +3. Otherwise, you need `@babel/plugin-proposal-dynamic-import` + ## Installation ```sh