Skip to content

Commit

Permalink
Update build-pkg script and add devtool option
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Dec 9, 2023
1 parent 251314c commit 548d493
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
"scripts": {
"build": "node scripts/build.js",
"build-pkg": "rm -rf dist && npm run build && pkg . --out-path dist-pkg",
"build-pkg": "rm -rf dist && npm run build && pkg . --out-path dist-pkg --no-bytecode --public --options=enable-source-maps",
"format-source": "prettier -w .",
"check-source-formatting": "prettier -c .",
"check-types": "tsc",
Expand Down
5 changes: 3 additions & 2 deletions server/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = {
},
{
test: /\.m?js$/,
parser: {amd: false},
parser: { amd: false },
use: {
loader: '@vercel/webpack-asset-relocator-loader',
options: {
Expand All @@ -51,6 +51,7 @@ module.exports = {
filename: 'index.js',
libraryTarget: 'commonjs2',
},
devtool: 'inline-source-map',
optimization: {
minimize: true,
minimizer: [
Expand All @@ -64,7 +65,7 @@ module.exports = {
}),
],
},
plugins: [new WebpackBar({name: 'server'}), new ShebangPlugin()],
plugins: [new WebpackBar({ name: 'server' }), new ShebangPlugin()],
target: 'node',
ignoreWarnings: [
{
Expand Down

0 comments on commit 548d493

Please sign in to comment.