Skip to content

Commit

Permalink
fix: added fix for missing fs error
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav-from-contentstack committed May 8, 2024
1 parent 960f79a commit 28cd0ae
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions webpack/webpack.web.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@
const path = require('path')
const webpackMerge = require('webpack-merge')

const commonConfig = require('./webpack.common.js')
const commonConfig = require('./webpack.common.js')()

module.exports = function (options) {
return webpackMerge(commonConfig(), {
delete commonConfig.externals;
return webpackMerge(commonConfig, {
output: {
libraryTarget: 'umd',
path: path.join(__dirname, '../dist/web'),
filename: 'contentstack-management.js'
},
resolve: {
fallback: {
os: require.resolve('os-browserify/browser')
os: require.resolve('os-browserify/browser'),
fs: false
}
},
module: {
Expand Down

0 comments on commit 28cd0ae

Please sign in to comment.