Skip to content

Commit 08539ea

Browse files
authored
Merge pull request #1201 from liferay/wincent/react-on-all-build
fix: make React available on AlloyEditor in "all" build variant (#1189, #1200)
2 parents dd20731 + 877e8a5 commit 08539ea

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

scripts/build/with-all.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import '../../lib/ckeditor/ckeditor';
2+
3+
import * as AlloyEditor from './with-react';
4+
5+
export {AlloyEditor};

webpack.common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const base = {
3434
module.exports = {
3535
config: {
3636
...base,
37-
entry: './scripts/build/index.js',
37+
entry: './scripts/build/with-all.js',
3838
output: {
3939
path: toAbsolute('./dist/alloy-editor'),
4040
},
@@ -74,7 +74,7 @@ module.exports = {
7474
},
7575
noReact: {
7676
...base,
77-
entry: './scripts/build/index.js',
77+
entry: './scripts/build/with-ckeditor.js',
7878
output: {
7979
libraryTarget: 'umd',
8080
path: toAbsolute('./dist/alloy-editor'),

0 commit comments

Comments
 (0)