Andrey Titovskiy 1 mese fa
parent
commit
8a2ed76748
3 ha cambiato i file con 9 aggiunte e 6 eliminazioni
  1. 1 1
      build/ckeditor.js
  2. 1 1
      build/ckeditor.js.map
  3. 7 4
      webpack.config.js

File diff suppressed because it is too large
+ 1 - 1
build/ckeditor.js


File diff suppressed because it is too large
+ 1 - 1
build/ckeditor.js.map


+ 7 - 4
webpack.config.js

@@ -19,13 +19,16 @@ export default {
 	entry: path.resolve(__dirname, 'src', 'ckeditor.js'),
 	output: {
 		library: {
-			name: 'CustomEditors',
-			type: 'umd',
-			export: 'default'
+			type: 'module'
 		},
 		path: path.resolve(__dirname, 'build'),
 		filename: 'ckeditor.js',
-		globalObject: 'this'
+		environment: {
+			module: true
+		}
+	},
+	experiments: {
+		outputModule: true
 	},
 	plugins: [
 		// More plugins.