@forge/bundler 2.0.1-next.4 → 3.0.0-next.8

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.8
4
+
5
+ ### Patch Changes
6
+
7
+ - @forge/cli-shared@2.2.2-next.5
8
+ - @forge/lint@3.0.1-next.5
9
+
10
+ ## 3.0.0-next.7
11
+
12
+ ### Minor Changes
13
+
14
+ - 3103a290: Update webpack config to fix module resolution issue with package exports
15
+
16
+ ### Patch Changes
17
+
18
+ - @forge/cli-shared@2.2.2-next.4
19
+ - @forge/lint@3.0.1-next.4
20
+
21
+ ## 3.0.0-next.6
22
+
23
+ ### Major Changes
24
+
25
+ - 60fcb01: Use versions of polyfills from earlier versions of @forge/cli
26
+
27
+ ## 2.1.0-next.5
28
+
29
+ ### Minor Changes
30
+
31
+ - 1f6cf083: Fix webpack devtool config in debugMode
32
+
3
33
  ## 2.0.1-next.4
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.4",
3
+ "version": "3.0.0-next.8",
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.3",
28
- "@forge/lint": "3.0.1-next.3",
24
+ "@forge/cli-shared": "2.2.2-next.5",
25
+ "@forge/lint": "3.0.1-next.5",
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
  },