Skip to content

Commit 28cd0ae

Browse files
fix: added fix for missing fs error
1 parent 960f79a commit 28cd0ae

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

webpack/webpack.web.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,20 @@
33
const path = require('path')
44
const webpackMerge = require('webpack-merge')
55

6-
const commonConfig = require('./webpack.common.js')
6+
const commonConfig = require('./webpack.common.js')()
77

88
module.exports = function (options) {
9-
return webpackMerge(commonConfig(), {
9+
delete commonConfig.externals;
10+
return webpackMerge(commonConfig, {
1011
output: {
1112
libraryTarget: 'umd',
1213
path: path.join(__dirname, '../dist/web'),
1314
filename: 'contentstack-management.js'
1415
},
1516
resolve: {
1617
fallback: {
17-
os: require.resolve('os-browserify/browser')
18+
os: require.resolve('os-browserify/browser'),
19+
fs: false
1820
}
1921
},
2022
module: {

0 commit comments

Comments
 (0)