@atlaspack/feature-flags 2.24.0 → 2.24.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 +6 -0
- package/lib/index.js +6 -1
- package/lib/types/index.d.ts +5 -0
- package/package.json +1 -1
- package/src/index.ts +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaspack/feature-flags
|
|
2
2
|
|
|
3
|
+
## 2.24.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#763](https://github.com/atlassian-labs/atlaspack/pull/763) [`830261d`](https://github.com/atlassian-labs/atlaspack/commit/830261dcf4a40293090b61cab52fd75d5683c73f) Thanks [@benjervis](https://github.com/benjervis)! - Fixes scope hoisting by iterating from the main entry asset of a bundle when packaging. Behind the feature flag `applyScopeHoistingImprovementsV2`.
|
|
8
|
+
|
|
3
9
|
## 2.24.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/lib/index.js
CHANGED
|
@@ -145,7 +145,12 @@ const DEFAULT_FEATURE_FLAGS = exports.DEFAULT_FEATURE_FLAGS = {
|
|
|
145
145
|
/**
|
|
146
146
|
* Enable optimised prelude for the ScopeHoistingPackager.
|
|
147
147
|
*/
|
|
148
|
-
useNewPrelude: false
|
|
148
|
+
useNewPrelude: false,
|
|
149
|
+
/**
|
|
150
|
+
* Enable a fix for applyScopeHoistingImprovement that allows assets to still
|
|
151
|
+
* be at the top level of the bundle.
|
|
152
|
+
*/
|
|
153
|
+
applyScopeHoistingImprovementV2: false
|
|
149
154
|
};
|
|
150
155
|
let featureFlagValues = {
|
|
151
156
|
...DEFAULT_FEATURE_FLAGS
|
package/lib/types/index.d.ts
CHANGED
|
@@ -134,6 +134,11 @@ export declare const DEFAULT_FEATURE_FLAGS: {
|
|
|
134
134
|
* Enable optimised prelude for the ScopeHoistingPackager.
|
|
135
135
|
*/
|
|
136
136
|
useNewPrelude: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Enable a fix for applyScopeHoistingImprovement that allows assets to still
|
|
139
|
+
* be at the top level of the bundle.
|
|
140
|
+
*/
|
|
141
|
+
applyScopeHoistingImprovementV2: boolean;
|
|
137
142
|
};
|
|
138
143
|
export type FeatureFlags = typeof DEFAULT_FEATURE_FLAGS;
|
|
139
144
|
export declare function setFeatureFlags(flags: FeatureFlags): void;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -172,6 +172,12 @@ export const DEFAULT_FEATURE_FLAGS = {
|
|
|
172
172
|
* Enable optimised prelude for the ScopeHoistingPackager.
|
|
173
173
|
*/
|
|
174
174
|
useNewPrelude: false,
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Enable a fix for applyScopeHoistingImprovement that allows assets to still
|
|
178
|
+
* be at the top level of the bundle.
|
|
179
|
+
*/
|
|
180
|
+
applyScopeHoistingImprovementV2: false,
|
|
175
181
|
};
|
|
176
182
|
|
|
177
183
|
export type FeatureFlags = typeof DEFAULT_FEATURE_FLAGS;
|