@forge/bundler 2.0.1-next.3 → 3.0.0-next.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @forge/bundler
2
2
 
3
+ ## 3.0.0-next.7
4
+
5
+ ### Minor Changes
6
+
7
+ - 3103a290: Update webpack config to fix module resolution issue with package exports
8
+
9
+ ### Patch Changes
10
+
11
+ - @forge/cli-shared@2.2.2-next.4
12
+ - @forge/lint@3.0.1-next.4
13
+
14
+ ## 3.0.0-next.6
15
+
16
+ ### Major Changes
17
+
18
+ - 60fcb01: Use versions of polyfills from earlier versions of @forge/cli
19
+
20
+ ## 2.1.0-next.5
21
+
22
+ ### Minor Changes
23
+
24
+ - 1f6cf083: Fix webpack devtool config in debugMode
25
+
26
+ ## 2.0.1-next.4
27
+
28
+ ### Patch Changes
29
+
30
+ - @forge/cli-shared@2.2.2-next.3
31
+ - @forge/lint@3.0.1-next.3
32
+
3
33
  ## 2.0.1-next.3
4
34
 
5
35
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"webpack.d.ts","sourceRoot":"","sources":["../src/webpack.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAkC,OAAO,EAAkB,MAAM,SAAS,CAAC;AAY3F,oBAAY,WAAW,GAAG,KAAK,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC,CAAC;AAgDH,UAAU,aAAa;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,gBAAgB,WAAY,aAAa,KAAG,MASxD,CAAC;AAiPF,eAAO,MAAM,MAAM,EAAE,OAqCpB,CAAC;AAgCF,eAAO,MAAM,KAAK,EAAE,OAmCnB,CAAC"}
1
+ {"version":3,"file":"webpack.d.ts","sourceRoot":"","sources":["../src/webpack.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAkC,OAAO,EAAkB,MAAM,SAAS,CAAC;AAY3F,oBAAY,WAAW,GAAG,KAAK,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC,CAAC;AAgDH,UAAU,aAAa;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,gBAAgB,WAAY,aAAa,KAAG,MASxD,CAAC;AAoPF,eAAO,MAAM,MAAM,EAAE,OAqCpB,CAAC;AAgCF,eAAO,MAAM,KAAK,EAAE,OAmCnB,CAAC"}
package/out/webpack.js CHANGED
@@ -48,7 +48,7 @@ exports.getDevToolConfig = (config) => {
48
48
  if (!config.isWatchMode) {
49
49
  return 'source-map';
50
50
  }
51
- return config.isDebugMode ? 'cheap-module-eval-source-map' : 'cheap-source-map';
51
+ return config.isDebugMode ? 'eval-cheap-module-source-map' : 'cheap-source-map';
52
52
  };
53
53
  const getCustomModulesAliases = () => {
54
54
  return {
@@ -181,6 +181,7 @@ const getBuildConfig = (entrypoints, config) => {
181
181
  performance: false,
182
182
  resolve: {
183
183
  mainFields: ['main', 'module'],
184
+ exportsFields: ['node'],
184
185
  alias: getCustomModulesAliases(),
185
186
  extensions: ['.ts', '.tsx', '.js', '.jsx', '.json']
186
187
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/bundler",
3
- "version": "2.0.1-next.3",
3
+ "version": "3.0.0-next.7",
4
4
  "description": "Default bundler for Forge apps",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Atlassian",
@@ -20,30 +20,17 @@
20
20
  "@babel/preset-typescript": "^7.16.7",
21
21
  "@forge/api": "2.6.0",
22
22
  "@forge/babel-plugin-transform-ui": "1.1.0",
23
- "assert": "^2.0.0",
24
23
  "babel-loader": "^8.2.3",
25
- "browserify-zlib": "^0.2.0",
26
- "buffer": "^6.0.3",
27
- "@forge/cli-shared": "2.2.2-next.2",
28
- "@forge/lint": "3.0.1-next.2",
24
+ "@forge/cli-shared": "2.2.2-next.4",
25
+ "@forge/lint": "3.0.1-next.4",
29
26
  "chalk": "^2.4.2",
30
- "console-browserify": "^1.2.0",
31
- "crypto-browserify": "^3.12.0",
32
- "events": "^3.3.0",
33
27
  "memfs": "^3.4.1",
34
- "os-browserify": "^0.3.0",
35
- "path-browserify": "^1.0.0",
36
- "process": "^0.11.10",
37
- "punycode": "^2.1.1",
28
+ "node-libs-browser": "^2.2.1",
38
29
  "querystring-browser": "^1.0.4",
39
30
  "readable-stream": "^3.4.0",
40
- "string_decoder": "^1.3.0",
41
31
  "text-encoder-lite": "^2.0.0",
42
- "timers-browserify": "^2.0.12",
43
32
  "ts-loader": "^9.2.6",
44
33
  "typescript": "^3.9.7",
45
- "url": "^0.11.0",
46
- "util": "^0.12.4",
47
34
  "webpack": "^5.66.0",
48
35
  "whatwg-url": "^7.0.0"
49
36
  },