@atlassian/webresource-webpack-plugin 7.1.0 → 7.1.1

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
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ### [7.1.1](https://bitbucket.org/atlassianlabs/fe-server/branches/compare/@atlassian/webresource-webpack-plugin@7.1.1..@atlassian/webresource-webpack-plugin@7.1.0) (2025-12-29)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **@atlassian/webresource-webpack-plugin:** do not require webpack-sources ([e15e443](https://bitbucket.org/atlassianlabs/fe-server/commits/e15e443570090a63669b55a884789ad617cbe32a))
12
+
13
+
14
+
6
15
  ## [7.1.0](https://bitbucket.org/atlassianlabs/fe-server/branches/compare/@atlassian/webresource-webpack-plugin@7.1.0..@atlassian/webresource-webpack-plugin@7.0.6) (2025-12-05)
7
16
 
8
17
 
package/README.md CHANGED
@@ -732,7 +732,7 @@ This plugin has been built to work with the following versions of the external b
732
732
  - [Atlassian Maven Plugin Suite (AMPS)][atlassian-amps] 6.2.11+
733
733
  - [Atlassian Web Resource Manager (WRM)][atlassian-wrm] 4.3.6+
734
734
 
735
- This plugin is tested with webpack 5.0+.
735
+ This plugin is tested with webpack 5.0+ and rspack 1.5+.
736
736
 
737
737
  ### Recommended with webpack 5
738
738
 
@@ -759,29 +759,21 @@ The tool will ask you a few questions and guide you if it finds issues with your
759
759
 
760
760
  You can read more about the troubleshooting tool on the [NPM page for the `@atlassian/wrm-troubleshooting` package][wrm-troubleshooting].
761
761
 
762
- ### webpack-sources compatibility
763
-
764
- If you install `webpack-sources@3` along with `webpack@4`, you'll likely get this error:
762
+ ### Runtime problems
765
763
 
766
764
  ```
767
- /project/path/node_modules/webpack/node_modules/webpack-sources/lib/ConcatSource.js:59
768
- return typeof item === "string" ? item : item.node(options);
769
-
770
- TypeError: item.node is not a function
771
- at /project/path/node_modules/webpack/node_modules/webpack-sources/lib/ConcatSource.js:59:50
772
- at Array.map (<anonymous>)
773
- at ConcatSource.node (/project/path/node_modules/webpack/node_modules/webpack-sources/lib/ConcatSource.js:58:63)
774
- at proto.sourceAndMap (/project/path/node_modules/webpack/node_modules/webpack-sources/lib/SourceAndMapMixin.js:29:18)
775
- at CachedSource.sourceAndMap (/project/path/node_modules/webpack/node_modules/webpack-sources/lib/CachedSource.js:58:31)
776
- at getTaskForFile (/project/path/node_modules/webpack/lib/SourceMapDevToolPlugin.js:65:30)
777
- at /project/path/node_modules/webpack/lib/SourceMapDevToolPlugin.js:215:20
778
- at Array.forEach (<anonymous>)
779
- at /project/path/node_modules/webpack/lib/SourceMapDevToolPlugin.js:186:12
780
- at SyncHook.eval [as call] (eval at create (/project/path/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:7:1)
765
+ e.O is not a function
766
+ ```
781
767
 
768
+ OR (when minimize: false)
769
+
770
+ ```
771
+ __webpack_require__.O is not a function
782
772
  ```
783
773
 
784
- A solution is to downgrade to `webpack-sources@2`
774
+ If you use bundle web-resources from an external plugin that uses `optimization.runtimeChunk: 'single'`
775
+ and `optimization.splitChunks.chunks: 'all'` you might need to configure your plugin to also use `runtime: 'single'`
776
+ so that webpack runtime object that is shared when loading chunks has the same signature.
785
777
 
786
778
  ### Other problems
787
779
 
@@ -15,18 +15,8 @@ const assertNpmPeerDependencies = () => {
15
15
  catch {
16
16
  /* empty */
17
17
  }
18
- if (!webpack || !rspack) {
19
- if (!webpack && !rspack) {
20
- throw new Error('You must install at least one of the following peer dependencies: "webpack@5" or "@rspack/core"');
21
- }
22
- if (webpack) {
23
- try {
24
- require('webpack-sources');
25
- }
26
- catch {
27
- throw new Error('You must install the "webpack-sources" package when using "webpack@5"');
28
- }
29
- }
18
+ if (!webpack && !rspack) {
19
+ throw new Error('You must install at least one of the following peer dependencies: "webpack@5" or "@rspack/core"');
30
20
  }
31
21
  };
32
22
  exports.assertNpmPeerDependencies = assertNpmPeerDependencies;
@@ -1 +1 @@
1
- {"version":3,"file":"peer-dependency-checker.js","sourceRoot":"","sources":["../../src/helpers/peer-dependency-checker.ts"],"names":[],"mappings":";;;AAAO,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC5C,IAAI,OAAO,EAAE,MAAM,CAAC;IAEpB,IAAI,CAAC;QACH,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAC/B,CAAC;IAAC,MAAM,CAAC;QACP,WAAW;IACb,CAAC;IAED,IAAI,CAAC;QACH,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IACnC,CAAC;IAAC,MAAM,CAAC;QACP,WAAW;IACb,CAAC;IAED,IAAI,CAAC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;QACxB,IAAI,CAAC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CACb,iGAAiG,CAClG,CAAC;QACJ,CAAC;QACD,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC;gBACH,OAAO,CAAC,iBAAiB,CAAC,CAAC;YAC7B,CAAC;YAAC,MAAM,CAAC;gBACP,MAAM,IAAI,KAAK,CAAC,uEAAuE,CAAC,CAAC;YAC3F,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC,CAAC;AA7BW,QAAA,yBAAyB,6BA6BpC"}
1
+ {"version":3,"file":"peer-dependency-checker.js","sourceRoot":"","sources":["../../src/helpers/peer-dependency-checker.ts"],"names":[],"mappings":";;;AAAO,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC5C,IAAI,OAAO,EAAE,MAAM,CAAC;IAEpB,IAAI,CAAC;QACH,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAC/B,CAAC;IAAC,MAAM,CAAC;QACP,WAAW;IACb,CAAC;IAED,IAAI,CAAC;QACH,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IACnC,CAAC;IAAC,MAAM,CAAC;QACP,WAAW;IACb,CAAC;IAED,IAAI,CAAC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,iGAAiG,CAAC,CAAC;IACrH,CAAC;AACH,CAAC,CAAC;AAlBW,QAAA,yBAAyB,6BAkBpC"}
package/jest.config.js CHANGED
@@ -1,5 +1,7 @@
1
1
  const baseConfig = require('../../jest.config.js');
2
2
 
3
+ const USE_CASES_DIR = '<rootDir>/test/use-cases';
4
+
3
5
  /**
4
6
  * @type {import('jest').Config}
5
7
  */
@@ -11,12 +13,20 @@ module.exports = {
11
13
  displayName: 'webpack',
12
14
  transform: baseConfig.transform,
13
15
  setupFilesAfterEnv: ['./test/util/setup-webpack.ts'],
16
+ testMatch: [`${USE_CASES_DIR}/**/*.test.ts`],
14
17
  },
15
18
  {
16
19
  preset: 'ts-jest',
17
20
  displayName: 'rspack',
18
21
  transform: baseConfig.transform,
19
22
  setupFilesAfterEnv: ['./test/util/setup-rspack.ts'],
23
+ testMatch: [`${USE_CASES_DIR}/**/*.test.ts`],
24
+ },
25
+ {
26
+ preset: 'ts-jest',
27
+ displayName: 'default',
28
+ transform: baseConfig.transform,
29
+ testPathIgnorePatterns: [USE_CASES_DIR],
20
30
  },
21
31
  ],
22
32
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlassian/webresource-webpack-plugin",
3
- "version": "7.1.0",
3
+ "version": "7.1.1",
4
4
  "description": "Auto-generates web-resource definitions from your webpacked code, for usage in an Atlassian product or plugin.",
5
5
  "main": "dist/WrmPlugin.js",
6
6
  "types": "dist/WrmPlugin.d.ts",
@@ -60,7 +60,7 @@
60
60
  "dependencies": {
61
61
  "lodash": "4.17.21",
62
62
  "pretty-data": "0.40.0",
63
- "tapable": "2.2.2",
63
+ "tapable": "2.2.3",
64
64
  "url-join": "4.0.1",
65
65
  "uuid": "8.3.2"
66
66
  },
@@ -75,10 +75,10 @@
75
75
  "@compiled/babel-plugin-strip-runtime": "^0.38.0",
76
76
  "@compiled/react": "^0.18.6",
77
77
  "@compiled/webpack-loader": "^0.19.6",
78
- "@rspack/core": "1.5.8",
78
+ "@rspack/core": "1.6.8",
79
79
  "@types/glob": "7.2.0",
80
80
  "@types/lodash": "4.14.202",
81
- "@types/node": "22.17.2",
81
+ "@types/node": "24.3.3",
82
82
  "@types/pretty-data": "0.40.3",
83
83
  "@types/url-join": "4.0.3",
84
84
  "@types/uuid": "8.3.4",
@@ -88,7 +88,7 @@
88
88
  "css-loader": "5.2.7",
89
89
  "css-minimizer-webpack-plugin": "^7.0.2",
90
90
  "del": "6.1.1",
91
- "esbuild": "0.25.9",
91
+ "esbuild": "0.25.12",
92
92
  "esbuild-register": "3.6.0",
93
93
  "eslint-plugin-local-rules": "^3.0.2",
94
94
  "file-loader": "6.2.0",
@@ -100,7 +100,7 @@
100
100
  "react-dom": "^18.3.1",
101
101
  "style-loader": "2.0.0",
102
102
  "ts-node": "10.4.0",
103
- "typescript": "5.9.2",
103
+ "typescript": "5.9.3",
104
104
  "underscore": "1.13.7",
105
105
  "webpack": "5.90.3",
106
106
  "webpack-cli": "4.9.2",
@@ -131,5 +131,5 @@
131
131
  "test:watch": "jest --watch",
132
132
  "test:ci": "jest --ci --silent --runInBand"
133
133
  },
134
- "gitHead": "ccdd91c5c93634876283628212ac8687a09c87c0"
134
+ "gitHead": "c77e8b834c4c566309a108278ad909c9c92c0e79"
135
135
  }