@atlaspack/bundler-library 2.12.3-dev.11 → 2.12.3-dev.127
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 +11 -0
- package/lib/LibraryBundler.js +8 -2
- package/package.json +3 -3
- package/src/LibraryBundler.js +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaspack/bundler-library
|
|
2
2
|
|
|
3
|
+
## 2.12.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#450](https://github.com/atlassian-labs/atlaspack/pull/450) [`b9d41b1`](https://github.com/atlassian-labs/atlaspack/commit/b9d41b175ad5771651a5b0278a5a0147e669234a) Thanks [@benjervis](https://github.com/benjervis)! - Remove the Atlaspack engines compatibility check
|
|
8
|
+
|
|
9
|
+
- [#478](https://github.com/atlassian-labs/atlaspack/pull/478) [`570493b`](https://github.com/atlassian-labs/atlaspack/commit/570493beaf754e7985aebc7daaaf6dfcfa8fe56b) Thanks [@yamadapc](https://github.com/yamadapc)! - The first attempt at Version Packages didn't include the built artifacts.
|
|
10
|
+
This has hopefully been fixed, so this change will force those packages to re-release.
|
|
11
|
+
- Updated dependencies [[`570493b`](https://github.com/atlassian-labs/atlaspack/commit/570493beaf754e7985aebc7daaaf6dfcfa8fe56b)]:
|
|
12
|
+
- @atlaspack/plugin@2.14.1
|
|
13
|
+
|
|
3
14
|
## 2.12.2
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/lib/LibraryBundler.js
CHANGED
|
@@ -87,8 +87,14 @@ var _default = exports.default = new (_plugin().Bundler)({
|
|
|
87
87
|
optimize() {}
|
|
88
88
|
});
|
|
89
89
|
function getBundleKey(asset, target) {
|
|
90
|
-
var _target$
|
|
90
|
+
var _target$loc2;
|
|
91
|
+
if (process.env.ATLASPACK_SUPER_BUILD === 'true') {
|
|
92
|
+
if (!asset.bundleBehavior && asset.filePath.includes('/node_modules/')) {
|
|
93
|
+
var _target$loc;
|
|
94
|
+
return `vendor.${asset.type}:${asset.env.id}:${((_target$loc = target.loc) === null || _target$loc === void 0 ? void 0 : _target$loc.filePath) ?? target.distDir}`;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
91
97
|
// Group by type and file path so CSS generated by macros is combined together by parent JS file.
|
|
92
98
|
// Also group by environment/target to ensure bundles cannot be shared between packages.
|
|
93
|
-
return `${asset.type}:${asset.filePath}:${asset.env.id}:${((_target$
|
|
99
|
+
return `${asset.type}:${asset.filePath}:${asset.env.id}:${((_target$loc2 = target.loc) === null || _target$loc2 === void 0 ? void 0 : _target$loc2.filePath) ?? target.distDir}`;
|
|
94
100
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/bundler-library",
|
|
3
|
-
"version": "2.12.3-dev.
|
|
3
|
+
"version": "2.12.3-dev.127+f61711fb0",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"publishConfig": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"node": ">= 16.0.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@atlaspack/plugin": "2.14.1-dev.
|
|
19
|
+
"@atlaspack/plugin": "2.14.1-dev.127+f61711fb0",
|
|
20
20
|
"nullthrows": "^1.1.1"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "f61711fb077f3c473aa49f56b1226da60f61b7df"
|
|
23
23
|
}
|
package/src/LibraryBundler.js
CHANGED
|
@@ -74,6 +74,13 @@ export default (new Bundler({
|
|
|
74
74
|
}): Bundler);
|
|
75
75
|
|
|
76
76
|
function getBundleKey(asset, target) {
|
|
77
|
+
if (process.env.ATLASPACK_SUPER_BUILD === 'true') {
|
|
78
|
+
if (!asset.bundleBehavior && asset.filePath.includes('/node_modules/')) {
|
|
79
|
+
return `vendor.${asset.type}:${asset.env.id}:${
|
|
80
|
+
target.loc?.filePath ?? target.distDir
|
|
81
|
+
}`;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
77
84
|
// Group by type and file path so CSS generated by macros is combined together by parent JS file.
|
|
78
85
|
// Also group by environment/target to ensure bundles cannot be shared between packages.
|
|
79
86
|
return `${asset.type}:${asset.filePath}:${asset.env.id}:${
|