@atlaspack/types-internal 2.12.1-dev.3478 → 2.12.1-dev.3502

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 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;
@@ -1649,7 +1652,7 @@ export interface BundleGraph<TBundle extends Bundle> {
1649
1652
  * @section bundler
1650
1653
  */
1651
1654
  export type BundleResult = {
1652
- readonly contents: Buffer | string;
1655
+ readonly contents: Blob;
1653
1656
  readonly ast?: AST;
1654
1657
  readonly map?: SourceMap | null | undefined;
1655
1658
  readonly type?: string;
@@ -1837,7 +1840,7 @@ export type Optimizer<ConfigType, BundleConfigType> = {
1837
1840
  optimize(arg0: {
1838
1841
  bundle: NamedBundle;
1839
1842
  bundleGraph: BundleGraph<NamedBundle>;
1840
- contents: Buffer | string;
1843
+ contents: Blob;
1841
1844
  map: SourceMap | null | undefined;
1842
1845
  options: PluginOptions;
1843
1846
  logger: PluginLogger;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/types-internal",
3
- "version": "2.12.1-dev.3478+5fd2da535",
3
+ "version": "2.12.1-dev.3502+c2daeab5a",
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.3478+5fd2da535",
20
- "@atlaspack/feature-flags": "2.12.1-dev.3478+5fd2da535",
19
+ "@atlaspack/diagnostic": "2.12.1-dev.3502+c2daeab5a",
20
+ "@atlaspack/feature-flags": "2.12.1-dev.3502+c2daeab5a",
21
21
  "@parcel/source-map": "^2.1.1",
22
22
  "utility-types": "^3.10.0"
23
23
  },
24
- "gitHead": "5fd2da535ecbe096d57e03aec15e80bb1d7601f7"
24
+ "gitHead": "c2daeab5a12461903159dec34df5671eaaa9b749"
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;
@@ -1653,7 +1656,7 @@ export interface BundleGraph<TBundle: Bundle> {
1653
1656
  * @section bundler
1654
1657
  */
1655
1658
  export type BundleResult = {|
1656
- +contents: Buffer | string,
1659
+ +contents: Blob,
1657
1660
  +ast?: AST,
1658
1661
  +map?: ?SourceMap,
1659
1662
  +type?: string,
@@ -1830,7 +1833,7 @@ export type Optimizer<ConfigType, BundleConfigType> = {|
1830
1833
  optimize({|
1831
1834
  bundle: NamedBundle,
1832
1835
  bundleGraph: BundleGraph<NamedBundle>,
1833
- contents: Buffer | string,
1836
+ contents: Blob,
1834
1837
  map: ?SourceMap,
1835
1838
  options: PluginOptions,
1836
1839
  logger: PluginLogger,