@atlaspack/types-internal 2.12.1-dev.3478 → 2.12.1-dev.3520
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.d.ts +8 -3
- package/package.json +4 -4
- package/src/index.js +11 -3
package/lib/index.d.ts
CHANGED
|
@@ -126,6 +126,7 @@ export type PackageTargetDescriptor = {
|
|
|
126
126
|
readonly optimize?: boolean;
|
|
127
127
|
readonly scopeHoist?: boolean;
|
|
128
128
|
readonly source?: FilePath | Array<FilePath>;
|
|
129
|
+
readonly __unstable_singleFileOutput?: boolean;
|
|
129
130
|
};
|
|
130
131
|
|
|
131
132
|
/**
|
|
@@ -153,6 +154,7 @@ export type EnvironmentOptions = {
|
|
|
153
154
|
readonly shouldScopeHoist?: boolean;
|
|
154
155
|
readonly sourceMap?: TargetSourceMapOptions | null | undefined;
|
|
155
156
|
readonly loc?: SourceLocation | null | undefined;
|
|
157
|
+
readonly unstableSingleFileOutput?: boolean;
|
|
156
158
|
};
|
|
157
159
|
|
|
158
160
|
/**
|
|
@@ -196,6 +198,7 @@ export interface Environment {
|
|
|
196
198
|
readonly shouldScopeHoist: boolean;
|
|
197
199
|
readonly sourceMap: TargetSourceMapOptions | null | undefined;
|
|
198
200
|
readonly loc: SourceLocation | null | undefined;
|
|
201
|
+
readonly unstableSingleFileOutput: boolean;
|
|
199
202
|
|
|
200
203
|
/** Whether <code>context</code> specifies a browser context. */
|
|
201
204
|
isBrowser(): boolean;
|
|
@@ -1635,11 +1638,13 @@ export interface BundleGraph<TBundle extends Bundle> {
|
|
|
1635
1638
|
ifTrueBundles: Array<TBundle>;
|
|
1636
1639
|
ifFalseBundles: Array<TBundle>;
|
|
1637
1640
|
}>>;
|
|
1638
|
-
getConditionsForDependencies(deps: Array<Dependency
|
|
1641
|
+
getConditionsForDependencies(deps: Array<Dependency>, bundle: NamedBundle): Set<{
|
|
1639
1642
|
publicId: string;
|
|
1640
1643
|
key: string;
|
|
1641
1644
|
ifTrueDependency: Dependency;
|
|
1642
1645
|
ifFalseDependency: Dependency;
|
|
1646
|
+
ifTrueBundles: Array<TBundle>;
|
|
1647
|
+
ifFalseBundles: Array<TBundle>;
|
|
1643
1648
|
ifTrueAssetId: string;
|
|
1644
1649
|
ifFalseAssetId: string;
|
|
1645
1650
|
}>;
|
|
@@ -1649,7 +1654,7 @@ export interface BundleGraph<TBundle extends Bundle> {
|
|
|
1649
1654
|
* @section bundler
|
|
1650
1655
|
*/
|
|
1651
1656
|
export type BundleResult = {
|
|
1652
|
-
readonly contents:
|
|
1657
|
+
readonly contents: Blob;
|
|
1653
1658
|
readonly ast?: AST;
|
|
1654
1659
|
readonly map?: SourceMap | null | undefined;
|
|
1655
1660
|
readonly type?: string;
|
|
@@ -1837,7 +1842,7 @@ export type Optimizer<ConfigType, BundleConfigType> = {
|
|
|
1837
1842
|
optimize(arg0: {
|
|
1838
1843
|
bundle: NamedBundle;
|
|
1839
1844
|
bundleGraph: BundleGraph<NamedBundle>;
|
|
1840
|
-
contents:
|
|
1845
|
+
contents: Blob;
|
|
1841
1846
|
map: SourceMap | null | undefined;
|
|
1842
1847
|
options: PluginOptions;
|
|
1843
1848
|
logger: PluginLogger;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/types-internal",
|
|
3
|
-
"version": "2.12.1-dev.
|
|
3
|
+
"version": "2.12.1-dev.3520+8a5346e28",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"check-ts": "tsc --noEmit lib/index.d.ts"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@atlaspack/diagnostic": "2.12.1-dev.
|
|
20
|
-
"@atlaspack/feature-flags": "2.12.1-dev.
|
|
19
|
+
"@atlaspack/diagnostic": "2.12.1-dev.3520+8a5346e28",
|
|
20
|
+
"@atlaspack/feature-flags": "2.12.1-dev.3520+8a5346e28",
|
|
21
21
|
"@parcel/source-map": "^2.1.1",
|
|
22
22
|
"utility-types": "^3.10.0"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "8a5346e28c1bb3b9cd40f1c4e77c66dd6666f1e4"
|
|
25
25
|
}
|
package/src/index.js
CHANGED
|
@@ -196,6 +196,7 @@ export type PackageTargetDescriptor = {|
|
|
|
196
196
|
+optimize?: boolean,
|
|
197
197
|
+scopeHoist?: boolean,
|
|
198
198
|
+source?: FilePath | Array<FilePath>,
|
|
199
|
+
+__unstable_singleFileOutput?: boolean,
|
|
199
200
|
|};
|
|
200
201
|
|
|
201
202
|
/**
|
|
@@ -228,6 +229,7 @@ export type EnvironmentOptions = {|
|
|
|
228
229
|
+shouldScopeHoist?: boolean,
|
|
229
230
|
+sourceMap?: ?TargetSourceMapOptions,
|
|
230
231
|
+loc?: ?SourceLocation,
|
|
232
|
+
+unstableSingleFileOutput?: boolean,
|
|
231
233
|
|};
|
|
232
234
|
|
|
233
235
|
/**
|
|
@@ -281,6 +283,7 @@ export interface Environment {
|
|
|
281
283
|
+shouldScopeHoist: boolean;
|
|
282
284
|
+sourceMap: ?TargetSourceMapOptions;
|
|
283
285
|
+loc: ?SourceLocation;
|
|
286
|
+
+unstableSingleFileOutput: boolean;
|
|
284
287
|
|
|
285
288
|
/** Whether <code>context</code> specifies a browser context. */
|
|
286
289
|
isBrowser(): boolean;
|
|
@@ -1639,11 +1642,16 @@ export interface BundleGraph<TBundle: Bundle> {
|
|
|
1639
1642
|
|},
|
|
1640
1643
|
>,
|
|
1641
1644
|
>;
|
|
1642
|
-
getConditionsForDependencies(
|
|
1645
|
+
getConditionsForDependencies(
|
|
1646
|
+
deps: Array<Dependency>,
|
|
1647
|
+
bundle: NamedBundle,
|
|
1648
|
+
): Set<{|
|
|
1643
1649
|
publicId: string,
|
|
1644
1650
|
key: string,
|
|
1645
1651
|
ifTrueDependency: Dependency,
|
|
1646
1652
|
ifFalseDependency: Dependency,
|
|
1653
|
+
ifTrueBundles: Array<TBundle>,
|
|
1654
|
+
ifFalseBundles: Array<TBundle>,
|
|
1647
1655
|
ifTrueAssetId: string,
|
|
1648
1656
|
ifFalseAssetId: string,
|
|
1649
1657
|
|}>;
|
|
@@ -1653,7 +1661,7 @@ export interface BundleGraph<TBundle: Bundle> {
|
|
|
1653
1661
|
* @section bundler
|
|
1654
1662
|
*/
|
|
1655
1663
|
export type BundleResult = {|
|
|
1656
|
-
+contents:
|
|
1664
|
+
+contents: Blob,
|
|
1657
1665
|
+ast?: AST,
|
|
1658
1666
|
+map?: ?SourceMap,
|
|
1659
1667
|
+type?: string,
|
|
@@ -1830,7 +1838,7 @@ export type Optimizer<ConfigType, BundleConfigType> = {|
|
|
|
1830
1838
|
optimize({|
|
|
1831
1839
|
bundle: NamedBundle,
|
|
1832
1840
|
bundleGraph: BundleGraph<NamedBundle>,
|
|
1833
|
-
contents:
|
|
1841
|
+
contents: Blob,
|
|
1834
1842
|
map: ?SourceMap,
|
|
1835
1843
|
options: PluginOptions,
|
|
1836
1844
|
logger: PluginLogger,
|