@parcel/types-internal 2.13.2 → 2.13.3-dev.3404
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 +5 -1
- package/package.json +4 -4
- package/src/index.js +6 -1
package/lib/index.d.ts
CHANGED
@@ -100,7 +100,7 @@ export interface Target {
|
|
100
100
|
}
|
101
101
|
|
102
102
|
/** In which environment the output should run (influces e.g. bundle loaders) */
|
103
|
-
export type EnvironmentContext = "browser" | "web-worker" | "service-worker" | "worklet" | "node" | "electron-main" | "electron-renderer";
|
103
|
+
export type EnvironmentContext = "browser" | "web-worker" | "service-worker" | "worklet" | "node" | "electron-main" | "electron-renderer" | "react-client" | "react-server";
|
104
104
|
|
105
105
|
/** The JS module format for the bundle output */
|
106
106
|
export type OutputFormat = "esmodule" | "commonjs" | "global";
|
@@ -199,6 +199,9 @@ export interface Environment {
|
|
199
199
|
/** Whether <code>context</code> specifies a node context. */
|
200
200
|
isNode(): boolean;
|
201
201
|
|
202
|
+
/** Whether <code>context</code> specifies a server context. */
|
203
|
+
isServer(): boolean;
|
204
|
+
|
202
205
|
/** Whether <code>context</code> specifies an electron context. */
|
203
206
|
isElectron(): boolean;
|
204
207
|
|
@@ -1737,6 +1740,7 @@ export type RuntimeAsset = {
|
|
1737
1740
|
readonly dependency?: Dependency;
|
1738
1741
|
readonly isEntry?: boolean;
|
1739
1742
|
readonly env?: EnvironmentOptions;
|
1743
|
+
readonly shouldReplaceResolution?: boolean;
|
1740
1744
|
};
|
1741
1745
|
|
1742
1746
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parcel/types-internal",
|
3
|
-
"version": "2.13.
|
3
|
+
"version": "2.13.3-dev.3404+61f02c2f3",
|
4
4
|
"license": "MIT",
|
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
|
-
"@parcel/diagnostic": "2.
|
20
|
-
"@parcel/feature-flags": "2.13.
|
19
|
+
"@parcel/diagnostic": "2.0.0-dev.1781+61f02c2f3",
|
20
|
+
"@parcel/feature-flags": "2.13.3-dev.3404+61f02c2f3",
|
21
21
|
"@parcel/source-map": "^2.1.1",
|
22
22
|
"utility-types": "^3.10.0"
|
23
23
|
},
|
24
|
-
"gitHead": "
|
24
|
+
"gitHead": "61f02c2f339013deb2ce38ff59edbe15d62e7cb5"
|
25
25
|
}
|
package/src/index.js
CHANGED
@@ -167,7 +167,9 @@ export type EnvironmentContext =
|
|
167
167
|
| 'worklet'
|
168
168
|
| 'node'
|
169
169
|
| 'electron-main'
|
170
|
-
| 'electron-renderer'
|
170
|
+
| 'electron-renderer'
|
171
|
+
| 'react-client'
|
172
|
+
| 'react-server';
|
171
173
|
|
172
174
|
/** The JS module format for the bundle output */
|
173
175
|
export type OutputFormat = 'esmodule' | 'commonjs' | 'global';
|
@@ -282,6 +284,8 @@ export interface Environment {
|
|
282
284
|
isBrowser(): boolean;
|
283
285
|
/** Whether <code>context</code> specifies a node context. */
|
284
286
|
isNode(): boolean;
|
287
|
+
/** Whether <code>context</code> specifies a server context. */
|
288
|
+
isServer(): boolean;
|
285
289
|
/** Whether <code>context</code> specifies an electron context. */
|
286
290
|
isElectron(): boolean;
|
287
291
|
/** Whether <code>context</code> specifies a worker context. */
|
@@ -1721,6 +1725,7 @@ export type RuntimeAsset = {|
|
|
1721
1725
|
+dependency?: Dependency,
|
1722
1726
|
+isEntry?: boolean,
|
1723
1727
|
+env?: EnvironmentOptions,
|
1728
|
+
+shouldReplaceResolution?: boolean,
|
1724
1729
|
|};
|
1725
1730
|
|
1726
1731
|
/**
|