File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed
packages/react-scripts/config Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,12 @@ module.exports = function (webpackEnv) {
29
29
...pluginEntries ,
30
30
...presetEntries ,
31
31
'apidom.worker' : path . join (
32
- paths . appSrc ,
33
- 'plugins' ,
34
- 'editor-monaco-language-apidom' ,
35
- 'language' ,
36
- 'apidom.worker.js'
32
+ paths . appPath ,
33
+ process . env . REACT_APP_APIDOM_WORKER_PATH
37
34
) ,
38
- 'editor.worker' : require . resolve (
39
- 'monaco-editor/esm/vs/editor/editor.worker.js'
35
+ 'editor.worker' : path . join (
36
+ paths . appPath ,
37
+ process . env . REACT_APP_EDITOR_WORKER_PATH
40
38
) ,
41
39
} ;
42
40
config . output . path = paths . appDist ;
Original file line number Diff line number Diff line change @@ -164,11 +164,8 @@ const apidomWorkerConfig = webpackEnv => {
164
164
165
165
config . entry = {
166
166
'apidom.worker' : path . join (
167
- paths . appSrc ,
168
- 'plugins' ,
169
- 'editor-monaco-language-apidom' ,
170
- 'language' ,
171
- 'apidom.worker.js'
167
+ paths . appPath ,
168
+ process . env . REACT_APP_APIDOM_WORKER_PATH
172
169
) ,
173
170
} ;
174
171
@@ -205,8 +202,9 @@ const editorWorkerConfig = webpackEnv => {
205
202
const config = commonConfig ( webpackEnv ) ;
206
203
207
204
config . entry = {
208
- 'editor.worker' : require . resolve (
209
- 'monaco-editor/esm/vs/editor/editor.worker.js'
205
+ 'editor.worker' : path . join (
206
+ paths . appPath ,
207
+ process . env . REACT_APP_EDITOR_WORKER_PATH
210
208
) ,
211
209
} ;
212
210
You can’t perform that action at this time.
0 commit comments