DEV Community

Lukas Gaucas
Lukas Gaucas

Posted on

output.target vs. output.chunkFormat in Webpack5

  • output.target ( default:web [if no browserlist installed] | other values) – meant to denote the output (bundle) format ;

    NOTE : the target is relatively global configuration , may be overwritten by output.chunkFormat, unless the .chunkFormat() set to false (default) to accept global target configuration !

  • 'output.chunkFormat' (default:false other values: 'array-push' | 'commonjs' | 'module' | ) – by default it listens for global of output.target unless specified other than default value .


ENQUIRY : if you found it useful, please upvote this

Top comments (0)