@atlaspack/feature-flags 2.14.1-dev.15 → 2.14.1-dev.26
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/lib/index.js +3 -1
- package/lib/types.d.ts +10 -0
- package/package.json +2 -2
- package/src/index.js +2 -0
- package/src/types.js +8 -1
package/lib/index.js
CHANGED
|
@@ -25,7 +25,9 @@ const DEFAULT_FEATURE_FLAGS = exports.DEFAULT_FEATURE_FLAGS = {
|
|
|
25
25
|
inlineBundlesSourceMapFixes: false,
|
|
26
26
|
conditionalBundlingNestedRuntime: false,
|
|
27
27
|
patchProjectPaths: false,
|
|
28
|
-
|
|
28
|
+
enableRustWorkerThreadDylibHack: true,
|
|
29
|
+
inlineStringReplacementPerf: false,
|
|
30
|
+
conditionalBundlingAsyncRuntime: false
|
|
29
31
|
};
|
|
30
32
|
let featureFlagValues = {
|
|
31
33
|
...DEFAULT_FEATURE_FLAGS
|
package/lib/types.d.ts
CHANGED
|
@@ -69,10 +69,20 @@ export type FeatureFlags = {
|
|
|
69
69
|
*/
|
|
70
70
|
patchProjectPaths: boolean;
|
|
71
71
|
|
|
72
|
+
/**
|
|
73
|
+
* Enable loading of the parcel dylib in the main thread.
|
|
74
|
+
*/
|
|
75
|
+
enableRustWorkerThreadDylibHack: boolean;
|
|
76
|
+
|
|
72
77
|
/**
|
|
73
78
|
* Enables optimized inline string replacement perf for the packager.
|
|
74
79
|
* Used heavily for inline bundles.
|
|
75
80
|
*/
|
|
76
81
|
inlineStringReplacementPerf: boolean;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Enable support for the async bundle runtime (unstable_asyncBundleRuntime) in conditional bundling
|
|
85
|
+
*/
|
|
86
|
+
conditionalBundlingAsyncRuntime: boolean;
|
|
77
87
|
};
|
|
78
88
|
export type ConsistencyCheckFeatureFlagValue = "NEW" | "OLD" | "NEW_AND_CHECK" | "OLD_AND_CHECK";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/feature-flags",
|
|
3
|
-
"version": "2.14.1-dev.
|
|
3
|
+
"version": "2.14.1-dev.26+01507b628",
|
|
4
4
|
"description": "Provides internal feature-flags for the atlaspack codebase.",
|
|
5
5
|
"license": "(MIT OR Apache-2.0)",
|
|
6
6
|
"publishConfig": {
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"node": ">= 16.0.0"
|
|
22
22
|
},
|
|
23
23
|
"type": "commonjs",
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "01507b628930d24dac9c29f19e2866dee381b09e"
|
|
25
25
|
}
|
package/src/index.js
CHANGED
|
@@ -20,7 +20,9 @@ export const DEFAULT_FEATURE_FLAGS: FeatureFlags = {
|
|
|
20
20
|
inlineBundlesSourceMapFixes: false,
|
|
21
21
|
conditionalBundlingNestedRuntime: false,
|
|
22
22
|
patchProjectPaths: false,
|
|
23
|
+
enableRustWorkerThreadDylibHack: true,
|
|
23
24
|
inlineStringReplacementPerf: false,
|
|
25
|
+
conditionalBundlingAsyncRuntime: false,
|
|
24
26
|
};
|
|
25
27
|
|
|
26
28
|
let featureFlagValues: FeatureFlags = {...DEFAULT_FEATURE_FLAGS};
|
package/src/types.js
CHANGED
|
@@ -58,12 +58,19 @@ export type FeatureFlags = {|
|
|
|
58
58
|
* This feature is experimental and should not be used in production. It will used to test downloadble cache artefacts.
|
|
59
59
|
*/
|
|
60
60
|
patchProjectPaths: boolean,
|
|
61
|
-
|
|
61
|
+
/**
|
|
62
|
+
* Enable loading of the parcel dylib in the main thread.
|
|
63
|
+
*/
|
|
64
|
+
enableRustWorkerThreadDylibHack: boolean,
|
|
62
65
|
/**
|
|
63
66
|
* Enables optimized inline string replacement perf for the packager.
|
|
64
67
|
* Used heavily for inline bundles.
|
|
65
68
|
*/
|
|
66
69
|
inlineStringReplacementPerf: boolean,
|
|
70
|
+
/**
|
|
71
|
+
* Enable support for the async bundle runtime (unstable_asyncBundleRuntime) in conditional bundling
|
|
72
|
+
*/
|
|
73
|
+
conditionalBundlingAsyncRuntime: boolean,
|
|
67
74
|
|};
|
|
68
75
|
|
|
69
76
|
export type ConsistencyCheckFeatureFlagValue =
|