Skip to main content
FarmFarm
Version: 1.x
On this page

Source Map

Farm supports Source Map, which is automatically enabled by default. Sourcemap can be enable or disable via the compilation.sourcemap option.

Using compilation.sourcemap to configuring sourcemap generation:

farm.config.ts
export default {
   compilation: {
     sourcemap: 'all', // generate sourcemap for modules under node_modules
   },
};

All options are as below:

  • true: Only generate sourcemap for files not under node_modules, and generate a separate sourcemap file
  • false: disable sourcemap
  • inline: Only generate sourcemap for files not under node_modules, and inline sourcemap into the product, do not generate a separate file
  • all: generate sourcemap for all files, and generate a separate sourcemap file
  • all-inline: Generate source maps for all files, and inline source maps into the product, do not generate separate files
100%

Drag or pinch to explore. Keyboard: + / − zoom, arrows pan, 0 resets, Esc closes.