Skip to content

Commit

Permalink
Include .map files in backend
Browse files Browse the repository at this point in the history
  • Loading branch information
johtela committed Oct 31, 2024
1 parent 652f0ea commit 455193c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/bundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,19 @@ function backendBuildOptions(opts: cfg.Options): eb.BuildOptions {
* Set the platform to node.js
*/
platform: 'node',
/**
* We minify the generated JS and CSS files when the deployment mode is
* `prod`.
*/
minify: opts.deployMode == 'prod',
/**
* Install the backend plugin defined above.
*/
plugins: [ backendPlugin ],
/**
* We minify the generated JS and CSS files when the deployment mode is
* `prod`.
* Source maps are generated for dev builds.
*/
minify: opts.deployMode == 'prod',
sourcemap: opts.deployMode == 'dev'
}
}
/**
Expand Down

0 comments on commit 455193c

Please sign in to comment.