Browse Source

Merge pull request #1558 from ckeditor/t/1553

Docs: Updated Babel's packages in Advanced setup guide. Closes #1553.
Piotrek Koszuliński 6 years ago
parent
commit
659e6bdada
1 changed files with 7 additions and 4 deletions
  1. 7 4
      docs/builds/guides/integration/advanced-setup.md

+ 7 - 4
docs/builds/guides/integration/advanced-setup.md

@@ -291,9 +291,12 @@ ClassicEditor
 			ImageCaptionPlugin,
 			ImageStylePlugin,
 			ImageToolbarPlugin,
+			EasyImagePlugin,
+			ImageUploadPlugin,
 			LinkPlugin,
 			ListPlugin,
-			ParagraphPlugin
+			ParagraphPlugin,
+			UploadAdapterPlugin
 		],
 
 		// So is the rest of the default configuration.
@@ -408,7 +411,7 @@ However, it may happen that your environment requires ES5. For instance, if you
 In order to create an ES5 build of CKEditor 5 you can use [Babel](https://babeljs.io/):
 
 ```bash
-npm install --save babel-loader babel-core babel-preset-env regenerator-runtime
+npm install --save babel-loader @babel/core @babel/preset-env regenerator-runtime
 ```
 
 Then, add this item to webpack [`module.rules`](https://webpack.js.org/configuration/module/#module-rules) section:
@@ -417,12 +420,12 @@ Then, add this item to webpack [`module.rules`](https://webpack.js.org/configura
 module: {
 	rules: [
 		{
-			test: /\.js$/,
+			test: /ckeditor5-[^\/\\]+[\/\\].*\.js$/,
 			use: [
 				{
 					loader: 'babel-loader',
 					options: {
-						presets: [ require( 'babel-preset-env' ) ]
+						presets: [ require( '@babel/preset-env' ) ]
 					}
 				}
 			]