@atlaspack/optimizer-inline-requires 2.14.27-inline-requires-take-2-850fb4568.0 → 2.14.28-dev-optimised-prelude-6fa233c65.0
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 +10 -0
- package/lib/InlineRequires.js +1 -9
- package/package.json +6 -6
- package/src/InlineRequires.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaspack/optimizer-inline-requires
|
|
2
2
|
|
|
3
|
+
## 2.14.27
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`3cfb7cf`](https://github.com/atlassian-labs/atlaspack/commit/3cfb7cfd90b78a5c48ce717e779ff789769825a3)]:
|
|
8
|
+
- @atlaspack/feature-flags@2.23.2
|
|
9
|
+
- @atlaspack/rust@3.6.2
|
|
10
|
+
- @atlaspack/plugin@2.14.27
|
|
11
|
+
- @atlaspack/types@2.15.17
|
|
12
|
+
|
|
3
13
|
## 2.14.26
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/lib/InlineRequires.js
CHANGED
|
@@ -28,13 +28,6 @@ function _sourceMap() {
|
|
|
28
28
|
};
|
|
29
29
|
return data;
|
|
30
30
|
}
|
|
31
|
-
function _featureFlags() {
|
|
32
|
-
const data = require("@atlaspack/feature-flags");
|
|
33
|
-
_featureFlags = function () {
|
|
34
|
-
return data;
|
|
35
|
-
};
|
|
36
|
-
return data;
|
|
37
|
-
}
|
|
38
31
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
39
32
|
// @ts-expect-error TS7034
|
|
40
33
|
let assetPublicIdsWithSideEffects = null;
|
|
@@ -90,8 +83,7 @@ module.exports = new (_plugin().Optimizer)({
|
|
|
90
83
|
const result = await (0, _rust().runInlineRequiresOptimizerAsync)({
|
|
91
84
|
code: contents.toString(),
|
|
92
85
|
sourceMaps: !!bundle.env.sourceMap,
|
|
93
|
-
ignoreModuleIds: Array.from(bundleConfig.assetPublicIdsWithSideEffects)
|
|
94
|
-
isReusedInlineRequiresEnabled: (0, _featureFlags().getFeatureFlag)('reusedInlineRequires')
|
|
86
|
+
ignoreModuleIds: Array.from(bundleConfig.assetPublicIdsWithSideEffects)
|
|
95
87
|
});
|
|
96
88
|
|
|
97
89
|
// @ts-expect-error TS2339
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/optimizer-inline-requires",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.28-dev-optimised-prelude-6fa233c65.0",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"node": ">= 14.0.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@atlaspack/feature-flags": "2.23.
|
|
20
|
-
"@atlaspack/plugin": "2.14.
|
|
21
|
-
"@atlaspack/rust": "3.6.
|
|
22
|
-
"@atlaspack/types": "2.15.
|
|
19
|
+
"@atlaspack/feature-flags": "2.23.3-dev-optimised-prelude-6fa233c65.0",
|
|
20
|
+
"@atlaspack/plugin": "2.14.28-dev-optimised-prelude-6fa233c65.0",
|
|
21
|
+
"@atlaspack/rust": "3.6.3-dev-optimised-prelude-6fa233c65.0",
|
|
22
|
+
"@atlaspack/types": "2.15.18-dev-optimised-prelude-6fa233c65.0",
|
|
23
23
|
"@parcel/source-map": "^2.1.1",
|
|
24
24
|
"@swc/core": "^1.10.0",
|
|
25
25
|
"nullthrows": "^1.1.1"
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"check-ts": "tsc --emitDeclarationOnly --rootDir src",
|
|
30
30
|
"build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "6fa233c656e8abea0878044e1fc0dc2023077a53"
|
|
33
33
|
}
|
package/src/InlineRequires.ts
CHANGED
|
@@ -2,7 +2,6 @@ import {Optimizer} from '@atlaspack/plugin';
|
|
|
2
2
|
import {runInlineRequiresOptimizerAsync} from '@atlaspack/rust';
|
|
3
3
|
import nullthrows from 'nullthrows';
|
|
4
4
|
import SourceMap from '@parcel/source-map';
|
|
5
|
-
import {getFeatureFlag} from '@atlaspack/feature-flags';
|
|
6
5
|
|
|
7
6
|
// @ts-expect-error TS7034
|
|
8
7
|
let assetPublicIdsWithSideEffects = null;
|
|
@@ -63,7 +62,6 @@ module.exports = new Optimizer<never, BundleConfig>({
|
|
|
63
62
|
code: contents.toString(),
|
|
64
63
|
sourceMaps: !!bundle.env.sourceMap,
|
|
65
64
|
ignoreModuleIds: Array.from(bundleConfig.assetPublicIdsWithSideEffects),
|
|
66
|
-
isReusedInlineRequiresEnabled: getFeatureFlag('reusedInlineRequires'),
|
|
67
65
|
});
|
|
68
66
|
|
|
69
67
|
// @ts-expect-error TS2339
|