Skip to content

Commit ef99868

Browse files
Merge pull request #133 from contentstack/next
Next
2 parents a7589db + c067ee1 commit ef99868

File tree

4 files changed

+23
-9
lines changed

4 files changed

+23
-9
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Change log
22

3+
### Version: 3.18.1
4+
#### Date: January-30-2024
5+
##### New Features:
6+
- added fix for `ESM module cannot use module.exports` issue
37
### Version: 3.18.0
48
#### Date: January-15-2024
59
##### New Features:

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "contentstack",
3-
"version": "3.18.0",
3+
"version": "3.18.1",
44
"description": "Contentstack Javascript SDK",
55
"homepage": "https://www.contentstack.com/",
66
"author": {

webpack/webpack.web.js

+16-6
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,23 @@ module.exports = function(options) {
2828
rules: [{
2929
test: /\.js?$/,
3030
exclude: '/node_modules/',
31-
use: [{
32-
loader: 'string-replace-loader',
33-
options: {
34-
search: '{{PLATFORM}}',
35-
replace: 'web'
31+
use: [
32+
{
33+
loader: 'babel-loader',
34+
options: {
35+
presets: [['@babel/preset-env', {
36+
modules: "commonjs"
37+
}]],
38+
}
39+
},
40+
{
41+
loader: 'string-replace-loader',
42+
options: {
43+
search: '{{PLATFORM}}',
44+
replace: 'web'
45+
}
3646
}
37-
}],
47+
],
3848
}]
3949
},
4050
node: {

0 commit comments

Comments
 (0)