Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

220
Views
Set multiple entries using react-app-rewired

Below are some options from an open-webpack (not CRA) react project:

// webpack.config.js

module.exports = {
    // ...
    entry: {
        main: './src/index.js',
        'editor.worker': 'monaco-editor/esm/vs/editor/editor.worker.js',
        'yaml.worker': 'monaco-yaml/lib/esm/yaml.worker.js',
    },
    // ...

How to implement similar configuration in config-overrides.js (using react-app-rewired)?

// config-overrides.js

module.exports = function override (config) {
    config.entry = // ???

    return config
}

My experience:

Simply set it to:

config.entry = {
    main: './src/index.js',
    'editor.worker': 'monaco-editor/esm/vs/editor/editor.worker.js',
    'yaml.worker': 'monaco-yaml/lib/esm/yaml.worker.js',
}

doesn't work. It even causes issues in loading index.js!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

config.optimization.runtimeChunk = 'single'

maybe help you ...

https://webpack.js.org/configuration/optimization/#optimizationruntimechunk


about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!