Skip to content

Commit

Permalink
fix(bug): test for a stable concerto package for browser
Browse files Browse the repository at this point in the history
Signed-off-by: sanketshevkar <[email protected]>
  • Loading branch information
sanketshevkar committed Dec 12, 2024
1 parent 0f2adad commit 3cdb990
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/concerto-core/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');

const packageJson = require('./package.json');

const emitWarningPollyfill = 'function(message, options){ console.warn({message: `DEPRECATED: ${message}`,type: options?.type,code: options?.code,detail: options?.detail});}';

module.exports = {
entry: './index.js',
output: {
Expand All @@ -44,7 +46,8 @@ module.exports = {
new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': JSON.stringify('production')
}
},
'process.emitWarning': emitWarningPollyfill
}),
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
Expand Down

0 comments on commit 3cdb990

Please sign in to comment.