Skip to content

Commit

Permalink
fix: disable minification for improved debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Vikram Kalta authored and Vikram Kalta committed Dec 18, 2024
1 parent 8bb371e commit b0c9256
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 12 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "contentstack",
"version": "3.23.1",
"version": "3.24.0",
"description": "Contentstack Javascript SDK",
"homepage": "https://www.contentstack.com/",
"author": {
Expand Down
5 changes: 4 additions & 1 deletion webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ module.exports = function(options) {
protectWebpackAssets: false,
cleanAfterEveryBuildPatterns: ['*.LICENSE.txt']
})
]
],
optimization: {
minimize: false, // Prevents code compression/minification
},
};
}
5 changes: 4 additions & 1 deletion webpack/webpack.nativescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ module.exports = function(options) {
}
],
}]
}
},
optimization: {
minimize: false, // Prevents code compression/minification
},
});
}
3 changes: 3 additions & 0 deletions webpack/webpack.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,8 @@ module.exports = function(options) {
}],
}]
},
optimization: {
minimize: false, // Prevents code compression/minification
},
});
}
17 changes: 10 additions & 7 deletions webpack/webpack.react-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ module.exports = function(options) {
externalsPresets: {
node: true
},
optimization: {
minimize: true,
minimizer: [new TerserPlugin({
terserOptions: { output: { ascii_only: true } }
})],
},
// optimization: {
// minimize: true,
// minimizer: [new TerserPlugin({
// terserOptions: { output: { ascii_only: true } }
// })],
// },
module: {
rules: [{
test: /\.js?$/,
Expand All @@ -57,6 +57,9 @@ module.exports = function(options) {
}
],
}]
}
},
optimization: {
minimize: false, // Prevents code compression/minification
},
});
}

0 comments on commit b0c9256

Please sign in to comment.