houdini 1.0.0-next.13 → 1.0.0-next.15
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/build/cmd-cjs/index.js +4 -4
- package/build/cmd-esm/index.js +4 -4
- package/build/codegen-cjs/index.js +2 -2
- package/build/codegen-esm/index.js +2 -2
- package/build/lib/types.d.ts +3 -1
- package/build/lib-cjs/index.js +1 -1
- package/build/lib-esm/index.js +1 -1
- package/build/runtime/client/documentStore.d.ts +12 -11
- package/build/runtime-cjs/client/documentStore.d.ts +12 -11
- package/build/runtime-esm/client/documentStore.d.ts +12 -11
- package/build/test-cjs/index.js +2 -2
- package/build/test-esm/index.js +2 -2
- package/build/vite/houdini.d.ts +2 -0
- package/build/vite-cjs/index.js +7 -5
- package/build/vite-esm/index.js +7 -5
- package/package.json +1 -1
package/build/cmd-cjs/index.js
CHANGED
|
@@ -70654,7 +70654,7 @@ function getRootType(type) {
|
|
|
70654
70654
|
function hashDocument({
|
|
70655
70655
|
document
|
|
70656
70656
|
}) {
|
|
70657
|
-
const docString = typeof document === "string" ? document : document.
|
|
70657
|
+
const docString = typeof document === "string" ? document : document.originalString;
|
|
70658
70658
|
return import_node_crypto.default.createHash("sha256").update(docString ?? "").digest("hex");
|
|
70659
70659
|
}
|
|
70660
70660
|
function parentTypeFromAncestors(schema, filepath, ancestors) {
|
|
@@ -73378,7 +73378,7 @@ function artifactGenerator(stats) {
|
|
|
73378
73378
|
return;
|
|
73379
73379
|
}
|
|
73380
73380
|
const match = existingArtifact && existingArtifact.match(/"HoudiniHash=(\w+)"/);
|
|
73381
|
-
if (match && match[1] !== hash
|
|
73381
|
+
if (match && match[1] !== artifact.hash) {
|
|
73382
73382
|
stats.changed.push(artifact.name);
|
|
73383
73383
|
}
|
|
73384
73384
|
stats.total.push(artifact.name);
|
|
@@ -76513,8 +76513,8 @@ async function updatePackageJSON(targetPath) {
|
|
|
76513
76513
|
}
|
|
76514
76514
|
packageJSON.devDependencies = {
|
|
76515
76515
|
...packageJSON.devDependencies,
|
|
76516
|
-
houdini: "^1.0.0-next.
|
|
76517
|
-
"houdini-svelte": "^1.0.0-next.
|
|
76516
|
+
houdini: "^1.0.0-next.15",
|
|
76517
|
+
"houdini-svelte": "^1.0.0-next.15"
|
|
76518
76518
|
};
|
|
76519
76519
|
await fs_exports.writeFile(packagePath, JSON.stringify(packageJSON, null, 4));
|
|
76520
76520
|
}
|
package/build/cmd-esm/index.js
CHANGED
|
@@ -70659,7 +70659,7 @@ function getRootType(type) {
|
|
|
70659
70659
|
function hashDocument({
|
|
70660
70660
|
document
|
|
70661
70661
|
}) {
|
|
70662
|
-
const docString = typeof document === "string" ? document : document.
|
|
70662
|
+
const docString = typeof document === "string" ? document : document.originalString;
|
|
70663
70663
|
return crypto.createHash("sha256").update(docString ?? "").digest("hex");
|
|
70664
70664
|
}
|
|
70665
70665
|
function parentTypeFromAncestors(schema, filepath, ancestors) {
|
|
@@ -73383,7 +73383,7 @@ function artifactGenerator(stats) {
|
|
|
73383
73383
|
return;
|
|
73384
73384
|
}
|
|
73385
73385
|
const match = existingArtifact && existingArtifact.match(/"HoudiniHash=(\w+)"/);
|
|
73386
|
-
if (match && match[1] !== hash
|
|
73386
|
+
if (match && match[1] !== artifact.hash) {
|
|
73387
73387
|
stats.changed.push(artifact.name);
|
|
73388
73388
|
}
|
|
73389
73389
|
stats.total.push(artifact.name);
|
|
@@ -76518,8 +76518,8 @@ async function updatePackageJSON(targetPath) {
|
|
|
76518
76518
|
}
|
|
76519
76519
|
packageJSON.devDependencies = {
|
|
76520
76520
|
...packageJSON.devDependencies,
|
|
76521
|
-
houdini: "^1.0.0-next.
|
|
76522
|
-
"houdini-svelte": "^1.0.0-next.
|
|
76521
|
+
houdini: "^1.0.0-next.15",
|
|
76522
|
+
"houdini-svelte": "^1.0.0-next.15"
|
|
76523
76523
|
};
|
|
76524
76524
|
await fs_exports.writeFile(packagePath, JSON.stringify(packageJSON, null, 4));
|
|
76525
76525
|
}
|
|
@@ -54407,7 +54407,7 @@ function getRootType(type) {
|
|
|
54407
54407
|
function hashDocument({
|
|
54408
54408
|
document
|
|
54409
54409
|
}) {
|
|
54410
|
-
const docString = typeof document === "string" ? document : document.
|
|
54410
|
+
const docString = typeof document === "string" ? document : document.originalString;
|
|
54411
54411
|
return import_node_crypto.default.createHash("sha256").update(docString ?? "").digest("hex");
|
|
54412
54412
|
}
|
|
54413
54413
|
function parentTypeFromAncestors(schema, filepath, ancestors) {
|
|
@@ -57106,7 +57106,7 @@ function artifactGenerator(stats) {
|
|
|
57106
57106
|
return;
|
|
57107
57107
|
}
|
|
57108
57108
|
const match = existingArtifact && existingArtifact.match(/"HoudiniHash=(\w+)"/);
|
|
57109
|
-
if (match && match[1] !== hash
|
|
57109
|
+
if (match && match[1] !== artifact.hash) {
|
|
57110
57110
|
stats.changed.push(artifact.name);
|
|
57111
57111
|
}
|
|
57112
57112
|
stats.total.push(artifact.name);
|
|
@@ -54405,7 +54405,7 @@ function getRootType(type) {
|
|
|
54405
54405
|
function hashDocument({
|
|
54406
54406
|
document
|
|
54407
54407
|
}) {
|
|
54408
|
-
const docString = typeof document === "string" ? document : document.
|
|
54408
|
+
const docString = typeof document === "string" ? document : document.originalString;
|
|
54409
54409
|
return crypto.createHash("sha256").update(docString ?? "").digest("hex");
|
|
54410
54410
|
}
|
|
54411
54411
|
function parentTypeFromAncestors(schema, filepath, ancestors) {
|
|
@@ -57104,7 +57104,7 @@ function artifactGenerator(stats) {
|
|
|
57104
57104
|
return;
|
|
57105
57105
|
}
|
|
57106
57106
|
const match = existingArtifact && existingArtifact.match(/"HoudiniHash=(\w+)"/);
|
|
57107
|
-
if (match && match[1] !== hash
|
|
57107
|
+
if (match && match[1] !== artifact.hash) {
|
|
57108
57108
|
stats.changed.push(artifact.name);
|
|
57109
57109
|
}
|
|
57110
57110
|
stats.total.push(artifact.name);
|
package/build/lib/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type graphql from 'graphql';
|
|
2
2
|
import type * as recast from 'recast';
|
|
3
|
-
import type { CustomPluginOptions, LoadResult, ObjectHook, PluginContext, ResolveIdResult } from 'rollup';
|
|
3
|
+
import type { CustomPluginOptions, LoadResult, ObjectHook, PluginContext, ResolveIdResult, SourceMapInput } from 'rollup';
|
|
4
4
|
import type { ConfigFile } from '../runtime/lib/config';
|
|
5
5
|
import type { ArtifactKind, BaseCompiledDocument, DocumentArtifact } from '../runtime/lib/types';
|
|
6
6
|
import type { TransformPage } from '../vite/houdini';
|
|
@@ -231,8 +231,10 @@ export type PluginHooks = {
|
|
|
231
231
|
*/
|
|
232
232
|
transformFile?: (page: TransformPage) => Promise<{
|
|
233
233
|
code: string;
|
|
234
|
+
map?: SourceMapInput | string;
|
|
234
235
|
}> | {
|
|
235
236
|
code: string;
|
|
237
|
+
map?: SourceMapInput | string;
|
|
236
238
|
};
|
|
237
239
|
vite?: {
|
|
238
240
|
resolveId?: ObjectHook<(this: PluginContext, source: string, importer: string | undefined, options: {
|
package/build/lib-cjs/index.js
CHANGED
|
@@ -63939,7 +63939,7 @@ function getRootType(type) {
|
|
|
63939
63939
|
function hashDocument({
|
|
63940
63940
|
document
|
|
63941
63941
|
}) {
|
|
63942
|
-
const docString = typeof document === "string" ? document : document.
|
|
63942
|
+
const docString = typeof document === "string" ? document : document.originalString;
|
|
63943
63943
|
return import_node_crypto.default.createHash("sha256").update(docString ?? "").digest("hex");
|
|
63944
63944
|
}
|
|
63945
63945
|
function parentTypeFromAncestors(schema, filepath, ancestors) {
|
package/build/lib-esm/index.js
CHANGED
|
@@ -63894,7 +63894,7 @@ function getRootType(type) {
|
|
|
63894
63894
|
function hashDocument({
|
|
63895
63895
|
document
|
|
63896
63896
|
}) {
|
|
63897
|
-
const docString = typeof document === "string" ? document : document.
|
|
63897
|
+
const docString = typeof document === "string" ? document : document.originalString;
|
|
63898
63898
|
return crypto.createHash("sha256").update(docString ?? "").digest("hex");
|
|
63899
63899
|
}
|
|
63900
63900
|
function parentTypeFromAncestors(schema, filepath, ancestors) {
|
|
@@ -14,17 +14,7 @@ export declare class DocumentStore<_Data extends GraphQLObject, _Input extends R
|
|
|
14
14
|
initialValue?: _Data | null;
|
|
15
15
|
fetching?: boolean;
|
|
16
16
|
});
|
|
17
|
-
send({ metadata, session, fetch, variables, policy, stuff, cacheParams, setup, silenceEcho, }?:
|
|
18
|
-
fetch?: Fetch;
|
|
19
|
-
variables?: Record<string, any> | null;
|
|
20
|
-
metadata?: App.Metadata | null;
|
|
21
|
-
session?: App.Session | null;
|
|
22
|
-
policy?: CachePolicy;
|
|
23
|
-
stuff?: Partial<App.Stuff>;
|
|
24
|
-
cacheParams?: ClientPluginContext['cacheParams'];
|
|
25
|
-
setup?: boolean;
|
|
26
|
-
silenceEcho?: boolean;
|
|
27
|
-
}): Promise<QueryResult<_Data, _Input>>;
|
|
17
|
+
send({ metadata, session, fetch, variables, policy, stuff, cacheParams, setup, silenceEcho, }?: SendParams): Promise<QueryResult<_Data, _Input>>;
|
|
28
18
|
}
|
|
29
19
|
declare function marshalVariables<_Data extends GraphQLObject, _Input extends {}>(ctx: ClientPluginContext): Record<string, any>;
|
|
30
20
|
export type ClientPlugin = () => ClientHooks | null | (ClientHooks | ClientPlugin | null)[];
|
|
@@ -86,4 +76,15 @@ export type ClientPluginExitHandlers = Omit<ClientPluginEnterHandlers, 'resolve'
|
|
|
86
76
|
export type ClientPluginErrorHandlers = ClientPluginEnterHandlers & {
|
|
87
77
|
error: unknown;
|
|
88
78
|
};
|
|
79
|
+
export type SendParams = {
|
|
80
|
+
fetch?: Fetch;
|
|
81
|
+
variables?: Record<string, any> | null;
|
|
82
|
+
metadata?: App.Metadata | null;
|
|
83
|
+
session?: App.Session | null;
|
|
84
|
+
policy?: CachePolicy;
|
|
85
|
+
stuff?: Partial<App.Stuff>;
|
|
86
|
+
cacheParams?: ClientPluginContext['cacheParams'];
|
|
87
|
+
setup?: boolean;
|
|
88
|
+
silenceEcho?: boolean;
|
|
89
|
+
};
|
|
89
90
|
export {};
|
|
@@ -14,17 +14,7 @@ export declare class DocumentStore<_Data extends GraphQLObject, _Input extends R
|
|
|
14
14
|
initialValue?: _Data | null;
|
|
15
15
|
fetching?: boolean;
|
|
16
16
|
});
|
|
17
|
-
send({ metadata, session, fetch, variables, policy, stuff, cacheParams, setup, silenceEcho, }?:
|
|
18
|
-
fetch?: Fetch;
|
|
19
|
-
variables?: Record<string, any> | null;
|
|
20
|
-
metadata?: App.Metadata | null;
|
|
21
|
-
session?: App.Session | null;
|
|
22
|
-
policy?: CachePolicy;
|
|
23
|
-
stuff?: Partial<App.Stuff>;
|
|
24
|
-
cacheParams?: ClientPluginContext['cacheParams'];
|
|
25
|
-
setup?: boolean;
|
|
26
|
-
silenceEcho?: boolean;
|
|
27
|
-
}): Promise<QueryResult<_Data, _Input>>;
|
|
17
|
+
send({ metadata, session, fetch, variables, policy, stuff, cacheParams, setup, silenceEcho, }?: SendParams): Promise<QueryResult<_Data, _Input>>;
|
|
28
18
|
}
|
|
29
19
|
declare function marshalVariables<_Data extends GraphQLObject, _Input extends {}>(ctx: ClientPluginContext): Record<string, any>;
|
|
30
20
|
export type ClientPlugin = () => ClientHooks | null | (ClientHooks | ClientPlugin | null)[];
|
|
@@ -86,4 +76,15 @@ export type ClientPluginExitHandlers = Omit<ClientPluginEnterHandlers, 'resolve'
|
|
|
86
76
|
export type ClientPluginErrorHandlers = ClientPluginEnterHandlers & {
|
|
87
77
|
error: unknown;
|
|
88
78
|
};
|
|
79
|
+
export type SendParams = {
|
|
80
|
+
fetch?: Fetch;
|
|
81
|
+
variables?: Record<string, any> | null;
|
|
82
|
+
metadata?: App.Metadata | null;
|
|
83
|
+
session?: App.Session | null;
|
|
84
|
+
policy?: CachePolicy;
|
|
85
|
+
stuff?: Partial<App.Stuff>;
|
|
86
|
+
cacheParams?: ClientPluginContext['cacheParams'];
|
|
87
|
+
setup?: boolean;
|
|
88
|
+
silenceEcho?: boolean;
|
|
89
|
+
};
|
|
89
90
|
export {};
|
|
@@ -14,17 +14,7 @@ export declare class DocumentStore<_Data extends GraphQLObject, _Input extends R
|
|
|
14
14
|
initialValue?: _Data | null;
|
|
15
15
|
fetching?: boolean;
|
|
16
16
|
});
|
|
17
|
-
send({ metadata, session, fetch, variables, policy, stuff, cacheParams, setup, silenceEcho, }?:
|
|
18
|
-
fetch?: Fetch;
|
|
19
|
-
variables?: Record<string, any> | null;
|
|
20
|
-
metadata?: App.Metadata | null;
|
|
21
|
-
session?: App.Session | null;
|
|
22
|
-
policy?: CachePolicy;
|
|
23
|
-
stuff?: Partial<App.Stuff>;
|
|
24
|
-
cacheParams?: ClientPluginContext['cacheParams'];
|
|
25
|
-
setup?: boolean;
|
|
26
|
-
silenceEcho?: boolean;
|
|
27
|
-
}): Promise<QueryResult<_Data, _Input>>;
|
|
17
|
+
send({ metadata, session, fetch, variables, policy, stuff, cacheParams, setup, silenceEcho, }?: SendParams): Promise<QueryResult<_Data, _Input>>;
|
|
28
18
|
}
|
|
29
19
|
declare function marshalVariables<_Data extends GraphQLObject, _Input extends {}>(ctx: ClientPluginContext): Record<string, any>;
|
|
30
20
|
export type ClientPlugin = () => ClientHooks | null | (ClientHooks | ClientPlugin | null)[];
|
|
@@ -86,4 +76,15 @@ export type ClientPluginExitHandlers = Omit<ClientPluginEnterHandlers, 'resolve'
|
|
|
86
76
|
export type ClientPluginErrorHandlers = ClientPluginEnterHandlers & {
|
|
87
77
|
error: unknown;
|
|
88
78
|
};
|
|
79
|
+
export type SendParams = {
|
|
80
|
+
fetch?: Fetch;
|
|
81
|
+
variables?: Record<string, any> | null;
|
|
82
|
+
metadata?: App.Metadata | null;
|
|
83
|
+
session?: App.Session | null;
|
|
84
|
+
policy?: CachePolicy;
|
|
85
|
+
stuff?: Partial<App.Stuff>;
|
|
86
|
+
cacheParams?: ClientPluginContext['cacheParams'];
|
|
87
|
+
setup?: boolean;
|
|
88
|
+
silenceEcho?: boolean;
|
|
89
|
+
};
|
|
89
90
|
export {};
|
package/build/test-cjs/index.js
CHANGED
|
@@ -54938,7 +54938,7 @@ function getRootType(type) {
|
|
|
54938
54938
|
function hashDocument({
|
|
54939
54939
|
document
|
|
54940
54940
|
}) {
|
|
54941
|
-
const docString = typeof document === "string" ? document : document.
|
|
54941
|
+
const docString = typeof document === "string" ? document : document.originalString;
|
|
54942
54942
|
return import_node_crypto.default.createHash("sha256").update(docString ?? "").digest("hex");
|
|
54943
54943
|
}
|
|
54944
54944
|
function parentTypeFromAncestors(schema, filepath, ancestors) {
|
|
@@ -57453,7 +57453,7 @@ function artifactGenerator(stats) {
|
|
|
57453
57453
|
return;
|
|
57454
57454
|
}
|
|
57455
57455
|
const match = existingArtifact && existingArtifact.match(/"HoudiniHash=(\w+)"/);
|
|
57456
|
-
if (match && match[1] !== hash
|
|
57456
|
+
if (match && match[1] !== artifact.hash) {
|
|
57457
57457
|
stats.changed.push(artifact.name);
|
|
57458
57458
|
}
|
|
57459
57459
|
stats.total.push(artifact.name);
|
package/build/test-esm/index.js
CHANGED
|
@@ -54933,7 +54933,7 @@ function getRootType(type) {
|
|
|
54933
54933
|
function hashDocument({
|
|
54934
54934
|
document
|
|
54935
54935
|
}) {
|
|
54936
|
-
const docString = typeof document === "string" ? document : document.
|
|
54936
|
+
const docString = typeof document === "string" ? document : document.originalString;
|
|
54937
54937
|
return crypto.createHash("sha256").update(docString ?? "").digest("hex");
|
|
54938
54938
|
}
|
|
54939
54939
|
function parentTypeFromAncestors(schema, filepath, ancestors) {
|
|
@@ -57448,7 +57448,7 @@ function artifactGenerator(stats) {
|
|
|
57448
57448
|
return;
|
|
57449
57449
|
}
|
|
57450
57450
|
const match = existingArtifact && existingArtifact.match(/"HoudiniHash=(\w+)"/);
|
|
57451
|
-
if (match && match[1] !== hash
|
|
57451
|
+
if (match && match[1] !== artifact.hash) {
|
|
57452
57452
|
stats.changed.push(artifact.name);
|
|
57453
57453
|
}
|
|
57454
57454
|
stats.total.push(artifact.name);
|
package/build/vite/houdini.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import type { SourceMapInput } from 'rollup';
|
|
1
2
|
import type { Plugin as VitePlugin } from 'vite';
|
|
2
3
|
import type { Config, PluginConfig } from '../lib';
|
|
3
4
|
export default function Plugin(opts?: PluginConfig): VitePlugin;
|
|
4
5
|
export interface TransformPage {
|
|
5
6
|
config: Config;
|
|
6
7
|
content: string;
|
|
8
|
+
map?: SourceMapInput;
|
|
7
9
|
filepath: string;
|
|
8
10
|
watch_file: (path: string) => void;
|
|
9
11
|
}
|
package/build/vite-cjs/index.js
CHANGED
|
@@ -67519,7 +67519,7 @@ function getRootType(type) {
|
|
|
67519
67519
|
function hashDocument({
|
|
67520
67520
|
document
|
|
67521
67521
|
}) {
|
|
67522
|
-
const docString = typeof document === "string" ? document : document.
|
|
67522
|
+
const docString = typeof document === "string" ? document : document.originalString;
|
|
67523
67523
|
return import_node_crypto.default.createHash("sha256").update(docString ?? "").digest("hex");
|
|
67524
67524
|
}
|
|
67525
67525
|
function parentTypeFromAncestors(schema, filepath, ancestors) {
|
|
@@ -70242,7 +70242,7 @@ function artifactGenerator(stats) {
|
|
|
70242
70242
|
return;
|
|
70243
70243
|
}
|
|
70244
70244
|
const match = existingArtifact && existingArtifact.match(/"HoudiniHash=(\w+)"/);
|
|
70245
|
-
if (match && match[1] !== hash
|
|
70245
|
+
if (match && match[1] !== artifact.hash) {
|
|
70246
70246
|
stats.changed.push(artifact.name);
|
|
70247
70247
|
}
|
|
70248
70248
|
stats.total.push(artifact.name);
|
|
@@ -72982,16 +72982,18 @@ function Plugin(opts = {}) {
|
|
|
72982
72982
|
content: code,
|
|
72983
72983
|
watch_file: this.addWatchFile,
|
|
72984
72984
|
config: config3,
|
|
72985
|
-
filepath
|
|
72985
|
+
filepath,
|
|
72986
|
+
map: this.getCombinedSourcemap()
|
|
72986
72987
|
};
|
|
72987
72988
|
for (const plugin2 of config3.plugins) {
|
|
72988
72989
|
if (!plugin2.transformFile) {
|
|
72989
72990
|
continue;
|
|
72990
72991
|
}
|
|
72991
|
-
const { code: code2 } = await plugin2.transformFile(ctx);
|
|
72992
|
+
const { code: code2, map } = await plugin2.transformFile(ctx);
|
|
72992
72993
|
ctx.content = code2;
|
|
72994
|
+
ctx.map = map;
|
|
72993
72995
|
}
|
|
72994
|
-
return { code: ctx.content };
|
|
72996
|
+
return { code: ctx.content, map: ctx.map };
|
|
72995
72997
|
},
|
|
72996
72998
|
async load(id, opts2, ...rest) {
|
|
72997
72999
|
for (const plugin2 of config3.plugins) {
|
package/build/vite-esm/index.js
CHANGED
|
@@ -67513,7 +67513,7 @@ function getRootType(type) {
|
|
|
67513
67513
|
function hashDocument({
|
|
67514
67514
|
document
|
|
67515
67515
|
}) {
|
|
67516
|
-
const docString = typeof document === "string" ? document : document.
|
|
67516
|
+
const docString = typeof document === "string" ? document : document.originalString;
|
|
67517
67517
|
return crypto.createHash("sha256").update(docString ?? "").digest("hex");
|
|
67518
67518
|
}
|
|
67519
67519
|
function parentTypeFromAncestors(schema, filepath, ancestors) {
|
|
@@ -70236,7 +70236,7 @@ function artifactGenerator(stats) {
|
|
|
70236
70236
|
return;
|
|
70237
70237
|
}
|
|
70238
70238
|
const match = existingArtifact && existingArtifact.match(/"HoudiniHash=(\w+)"/);
|
|
70239
|
-
if (match && match[1] !== hash
|
|
70239
|
+
if (match && match[1] !== artifact.hash) {
|
|
70240
70240
|
stats.changed.push(artifact.name);
|
|
70241
70241
|
}
|
|
70242
70242
|
stats.total.push(artifact.name);
|
|
@@ -72976,16 +72976,18 @@ function Plugin(opts = {}) {
|
|
|
72976
72976
|
content: code,
|
|
72977
72977
|
watch_file: this.addWatchFile,
|
|
72978
72978
|
config: config3,
|
|
72979
|
-
filepath
|
|
72979
|
+
filepath,
|
|
72980
|
+
map: this.getCombinedSourcemap()
|
|
72980
72981
|
};
|
|
72981
72982
|
for (const plugin2 of config3.plugins) {
|
|
72982
72983
|
if (!plugin2.transformFile) {
|
|
72983
72984
|
continue;
|
|
72984
72985
|
}
|
|
72985
|
-
const { code: code2 } = await plugin2.transformFile(ctx);
|
|
72986
|
+
const { code: code2, map } = await plugin2.transformFile(ctx);
|
|
72986
72987
|
ctx.content = code2;
|
|
72988
|
+
ctx.map = map;
|
|
72987
72989
|
}
|
|
72988
|
-
return { code: ctx.content };
|
|
72990
|
+
return { code: ctx.content, map: ctx.map };
|
|
72989
72991
|
},
|
|
72990
72992
|
async load(id, opts2, ...rest) {
|
|
72991
72993
|
for (const plugin2 of config3.plugins) {
|