Skip to content

Commit

Permalink
Merge pull request #144 from contentstack/fix/dx-174
Browse files Browse the repository at this point in the history
fix: added fix for missing fs error
  • Loading branch information
abhinav-from-contentstack authored May 9, 2024
2 parents 960f79a + 5a5c4a0 commit c7444c4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog

## [v1.16.0](https://github.com/contentstack/contentstack-management-javascript/tree/v1.15.4) (2024-04-09)
## [v1.16.1](https://github.com/contentstack/contentstack-management-javascript/tree/v1.16.1) (2024-05-08)
- Fix
- Fix for `fs` not found issue in web build
## [v1.16.0](https://github.com/contentstack/contentstack-management-javascript/tree/v1.16.0) (2024-04-09)
- Feature
- Get languages of an entry
## [v1.15.4](https://github.com/contentstack/contentstack-management-javascript/tree/v1.15.4) (2024-03-28)
Expand Down
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/management",
"version": "1.16.0",
"version": "1.16.1",
"description": "The Content Management API is used to manage the content of your Contentstack account",
"main": "./dist/node/contentstack-management.js",
"browser": "./dist/web/contentstack-management.js",
Expand Down
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 c7444c4

Please sign in to comment.