houdini-svelte 0.19.1 → 0.19.3

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.
@@ -1,4 +1,5 @@
1
- import { PluginFactory } from 'houdini';
1
+ import { PluginFactory, type Config } from 'houdini';
2
+ export declare let _config: Config;
2
3
  declare const HoudiniSveltePlugin: PluginFactory;
3
4
  export default HoudiniSveltePlugin;
4
5
  declare module 'houdini' {
@@ -12401,21 +12401,21 @@ var require_lexicographicSortSchema2 = __commonJS({
12401
12401
  }));
12402
12402
  }
12403
12403
  if ((0, _definition.isInterfaceType)(type)) {
12404
- var _config = type.toConfig();
12405
- return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config), {}, {
12404
+ var _config2 = type.toConfig();
12405
+ return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config2), {}, {
12406
12406
  interfaces: function interfaces() {
12407
- return sortTypes(_config.interfaces);
12407
+ return sortTypes(_config2.interfaces);
12408
12408
  },
12409
12409
  fields: function fields() {
12410
- return sortFields(_config.fields);
12410
+ return sortFields(_config2.fields);
12411
12411
  }
12412
12412
  }));
12413
12413
  }
12414
12414
  if ((0, _definition.isUnionType)(type)) {
12415
- var _config2 = type.toConfig();
12416
- return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config2), {}, {
12415
+ var _config22 = type.toConfig();
12416
+ return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config22), {}, {
12417
12417
  types: function types13() {
12418
- return sortTypes(_config2.types);
12418
+ return sortTypes(_config22.types);
12419
12419
  }
12420
12420
  }));
12421
12421
  }
@@ -31067,6 +31067,7 @@ var init_exports = __esm({
31067
31067
  // src/plugin/index.ts
31068
31068
  var plugin_exports = {};
31069
31069
  __export(plugin_exports, {
31070
+ _config: () => _config,
31070
31071
  default: () => plugin_default
31071
31072
  });
31072
31073
  module.exports = __toCommonJS(plugin_exports);
@@ -156432,7 +156433,9 @@ function find_insert_index(script) {
156432
156433
  return insert_index;
156433
156434
  }
156434
156435
  function find_exported_fn(body, name2) {
156436
+ console.log(body);
156435
156437
  for (const statement of body) {
156438
+ console.log(statement);
156436
156439
  if (statement.type !== "ExportNamedDeclaration") {
156437
156440
  continue;
156438
156441
  }
@@ -156448,8 +156451,15 @@ function find_exported_fn(body, name2) {
156448
156451
  continue;
156449
156452
  }
156450
156453
  const declaration = value2.declarations[0];
156451
- if (declaration.init?.type === "FunctionExpression" || declaration.init?.type === "ArrowFunctionExpression") {
156452
- return declaration.init;
156454
+ let { init } = declaration;
156455
+ if (!init) {
156456
+ continue;
156457
+ }
156458
+ if (init.type === "TSSatisfiesExpression") {
156459
+ init = init.expression;
156460
+ }
156461
+ if (init.type === "FunctionExpression" || init.type === "ArrowFunctionExpression") {
156462
+ return init;
156453
156463
  }
156454
156464
  } else {
156455
156465
  continue;
@@ -185815,7 +185825,7 @@ import_fs.default.readdirSync = function(filepath, options) {
185815
185825
  if (is_root_route(posix_filepath) && !contains2("+layout.svelte")) {
185816
185826
  result.push(virtual_file("+layout.svelte", options));
185817
185827
  }
185818
- if (is_root_route(posix_filepath) && !contains2("+layout.server.js", "+layout.server.ts")) {
185828
+ if (is_root_route(posix_filepath) && !contains2("+layout.server.js", "+layout.server.ts") && !plugin_config(_config).static) {
185819
185829
  result.push(virtual_file("+layout.server.js", options));
185820
185830
  }
185821
185831
  if (is_root_route(posix_filepath) && !contains2("+layout.js", "+layout.ts")) {
@@ -186857,6 +186867,7 @@ async function validateDocuments({
186857
186867
 
186858
186868
  // src/plugin/index.ts
186859
186869
  var framework = "svelte";
186870
+ var _config;
186860
186871
  var HoudiniSveltePlugin = async () => ({
186861
186872
  order: "core",
186862
186873
  extensions: [".svelte"],
@@ -186926,6 +186937,7 @@ export const error = svelteKitError
186926
186937
  ...fsPatch_default(() => framework)
186927
186938
  },
186928
186939
  async after_load(cfg) {
186940
+ _config = cfg;
186929
186941
  const cfgPlugin = plugin_config(cfg);
186930
186942
  let client_file_exists = false;
186931
186943
  if (path_exports.extname(cfgPlugin.client)) {
@@ -186966,7 +186978,9 @@ export const error = svelteKitError
186966
186978
  var _env;
186967
186979
  var plugin_default = HoudiniSveltePlugin;
186968
186980
  // Annotate the CommonJS export names for ESM import in node:
186969
- 0 && (module.exports = {});
186981
+ 0 && (module.exports = {
186982
+ _config
186983
+ });
186970
186984
  /*!
186971
186985
  * fill-range <https://github.com/jonschlinkert/fill-range>
186972
186986
  *
@@ -12406,21 +12406,21 @@ var require_lexicographicSortSchema2 = __commonJS({
12406
12406
  }));
12407
12407
  }
12408
12408
  if ((0, _definition.isInterfaceType)(type)) {
12409
- var _config = type.toConfig();
12410
- return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config), {}, {
12409
+ var _config2 = type.toConfig();
12410
+ return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config2), {}, {
12411
12411
  interfaces: function interfaces() {
12412
- return sortTypes(_config.interfaces);
12412
+ return sortTypes(_config2.interfaces);
12413
12413
  },
12414
12414
  fields: function fields() {
12415
- return sortFields(_config.fields);
12415
+ return sortFields(_config2.fields);
12416
12416
  }
12417
12417
  }));
12418
12418
  }
12419
12419
  if ((0, _definition.isUnionType)(type)) {
12420
- var _config2 = type.toConfig();
12421
- return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config2), {}, {
12420
+ var _config22 = type.toConfig();
12421
+ return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config22), {}, {
12422
12422
  types: function types13() {
12423
- return sortTypes(_config2.types);
12423
+ return sortTypes(_config22.types);
12424
12424
  }
12425
12425
  }));
12426
12426
  }
@@ -156428,7 +156428,9 @@ function find_insert_index(script) {
156428
156428
  return insert_index;
156429
156429
  }
156430
156430
  function find_exported_fn(body, name2) {
156431
+ console.log(body);
156431
156432
  for (const statement of body) {
156433
+ console.log(statement);
156432
156434
  if (statement.type !== "ExportNamedDeclaration") {
156433
156435
  continue;
156434
156436
  }
@@ -156444,8 +156446,15 @@ function find_exported_fn(body, name2) {
156444
156446
  continue;
156445
156447
  }
156446
156448
  const declaration = value2.declarations[0];
156447
- if (declaration.init?.type === "FunctionExpression" || declaration.init?.type === "ArrowFunctionExpression") {
156448
- return declaration.init;
156449
+ let { init } = declaration;
156450
+ if (!init) {
156451
+ continue;
156452
+ }
156453
+ if (init.type === "TSSatisfiesExpression") {
156454
+ init = init.expression;
156455
+ }
156456
+ if (init.type === "FunctionExpression" || init.type === "ArrowFunctionExpression") {
156457
+ return init;
156449
156458
  }
156450
156459
  } else {
156451
156460
  continue;
@@ -185811,7 +185820,7 @@ filesystem.readdirSync = function(filepath, options) {
185811
185820
  if (is_root_route(posix_filepath) && !contains2("+layout.svelte")) {
185812
185821
  result.push(virtual_file("+layout.svelte", options));
185813
185822
  }
185814
- if (is_root_route(posix_filepath) && !contains2("+layout.server.js", "+layout.server.ts")) {
185823
+ if (is_root_route(posix_filepath) && !contains2("+layout.server.js", "+layout.server.ts") && !plugin_config(_config).static) {
185815
185824
  result.push(virtual_file("+layout.server.js", options));
185816
185825
  }
185817
185826
  if (is_root_route(posix_filepath) && !contains2("+layout.js", "+layout.ts")) {
@@ -186853,6 +186862,7 @@ async function validateDocuments({
186853
186862
 
186854
186863
  // src/plugin/index.ts
186855
186864
  var framework = "svelte";
186865
+ var _config;
186856
186866
  var HoudiniSveltePlugin = async () => ({
186857
186867
  order: "core",
186858
186868
  extensions: [".svelte"],
@@ -186922,6 +186932,7 @@ export const error = svelteKitError
186922
186932
  ...fsPatch_default(() => framework)
186923
186933
  },
186924
186934
  async after_load(cfg) {
186935
+ _config = cfg;
186925
186936
  const cfgPlugin = plugin_config(cfg);
186926
186937
  let client_file_exists = false;
186927
186938
  if (path_exports.extname(cfgPlugin.client)) {
@@ -186962,6 +186973,7 @@ export const error = svelteKitError
186962
186973
  var _env;
186963
186974
  var plugin_default = HoudiniSveltePlugin;
186964
186975
  export {
186976
+ _config,
186965
186977
  plugin_default as default
186966
186978
  };
186967
186979
  /*!
@@ -188221,7 +188221,9 @@ function find_insert_index(script) {
188221
188221
  return insert_index;
188222
188222
  }
188223
188223
  function find_exported_fn(body, name2) {
188224
+ console.log(body);
188224
188225
  for (const statement of body) {
188226
+ console.log(statement);
188225
188227
  if (statement.type !== "ExportNamedDeclaration") {
188226
188228
  continue;
188227
188229
  }
@@ -188237,8 +188239,15 @@ function find_exported_fn(body, name2) {
188237
188239
  continue;
188238
188240
  }
188239
188241
  const declaration = value2.declarations[0];
188240
- if (declaration.init?.type === "FunctionExpression" || declaration.init?.type === "ArrowFunctionExpression") {
188241
- return declaration.init;
188242
+ let { init } = declaration;
188243
+ if (!init) {
188244
+ continue;
188245
+ }
188246
+ if (init.type === "TSSatisfiesExpression") {
188247
+ init = init.expression;
188248
+ }
188249
+ if (init.type === "FunctionExpression" || init.type === "ArrowFunctionExpression") {
188250
+ return init;
188242
188251
  }
188243
188252
  } else {
188244
188253
  continue;
@@ -188213,7 +188213,9 @@ function find_insert_index(script) {
188213
188213
  return insert_index;
188214
188214
  }
188215
188215
  function find_exported_fn(body, name2) {
188216
+ console.log(body);
188216
188217
  for (const statement of body) {
188218
+ console.log(statement);
188217
188219
  if (statement.type !== "ExportNamedDeclaration") {
188218
188220
  continue;
188219
188221
  }
@@ -188229,8 +188231,15 @@ function find_exported_fn(body, name2) {
188229
188231
  continue;
188230
188232
  }
188231
188233
  const declaration = value2.declarations[0];
188232
- if (declaration.init?.type === "FunctionExpression" || declaration.init?.type === "ArrowFunctionExpression") {
188233
- return declaration.init;
188234
+ let { init } = declaration;
188235
+ if (!init) {
188236
+ continue;
188237
+ }
188238
+ if (init.type === "TSSatisfiesExpression") {
188239
+ init = init.expression;
188240
+ }
188241
+ if (init.type === "FunctionExpression" || init.type === "ArrowFunctionExpression") {
188242
+ return init;
188234
188243
  }
188235
188244
  } else {
188236
188245
  continue;
@@ -12401,21 +12401,21 @@ var require_lexicographicSortSchema4 = __commonJS({
12401
12401
  }));
12402
12402
  }
12403
12403
  if ((0, _definition.isInterfaceType)(type)) {
12404
- var _config = type.toConfig();
12405
- return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config), {}, {
12404
+ var _config2 = type.toConfig();
12405
+ return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config2), {}, {
12406
12406
  interfaces: function interfaces() {
12407
- return sortTypes(_config.interfaces);
12407
+ return sortTypes(_config2.interfaces);
12408
12408
  },
12409
12409
  fields: function fields() {
12410
- return sortFields(_config.fields);
12410
+ return sortFields(_config2.fields);
12411
12411
  }
12412
12412
  }));
12413
12413
  }
12414
12414
  if ((0, _definition.isUnionType)(type)) {
12415
- var _config2 = type.toConfig();
12416
- return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config2), {}, {
12415
+ var _config22 = type.toConfig();
12416
+ return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config22), {}, {
12417
12417
  types: function types13() {
12418
- return sortTypes(_config2.types);
12418
+ return sortTypes(_config22.types);
12419
12419
  }
12420
12420
  }));
12421
12421
  }
@@ -104255,21 +104255,21 @@ var require_lexicographicSortSchema2 = __commonJS3({
104255
104255
  }));
104256
104256
  }
104257
104257
  if ((0, _definition.isInterfaceType)(type)) {
104258
- var _config = type.toConfig();
104259
- return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config), {}, {
104258
+ var _config2 = type.toConfig();
104259
+ return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config2), {}, {
104260
104260
  interfaces: function interfaces() {
104261
- return sortTypes(_config.interfaces);
104261
+ return sortTypes(_config2.interfaces);
104262
104262
  },
104263
104263
  fields: function fields() {
104264
- return sortFields(_config.fields);
104264
+ return sortFields(_config2.fields);
104265
104265
  }
104266
104266
  }));
104267
104267
  }
104268
104268
  if ((0, _definition.isUnionType)(type)) {
104269
- var _config2 = type.toConfig();
104270
- return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config2), {}, {
104269
+ var _config22 = type.toConfig();
104270
+ return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config22), {}, {
104271
104271
  types: function types14() {
104272
- return sortTypes(_config2.types);
104272
+ return sortTypes(_config22.types);
104273
104273
  }
104274
104274
  }));
104275
104275
  }
@@ -164401,21 +164401,21 @@ var require_lexicographicSortSchema3 = __commonJS4({
164401
164401
  }));
164402
164402
  }
164403
164403
  if ((0, _definition.isInterfaceType)(type)) {
164404
- var _config = type.toConfig();
164405
- return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config), {}, {
164404
+ var _config2 = type.toConfig();
164405
+ return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config2), {}, {
164406
164406
  interfaces: function interfaces() {
164407
- return sortTypes(_config.interfaces);
164407
+ return sortTypes(_config2.interfaces);
164408
164408
  },
164409
164409
  fields: function fields() {
164410
- return sortFields(_config.fields);
164410
+ return sortFields(_config2.fields);
164411
164411
  }
164412
164412
  }));
164413
164413
  }
164414
164414
  if ((0, _definition.isUnionType)(type)) {
164415
- var _config2 = type.toConfig();
164416
- return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config2), {}, {
164415
+ var _config22 = type.toConfig();
164416
+ return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config22), {}, {
164417
164417
  types: function types14() {
164418
- return sortTypes(_config2.types);
164418
+ return sortTypes(_config22.types);
164419
164419
  }
164420
164420
  }));
164421
164421
  }
@@ -272944,7 +272944,9 @@ function find_insert_index(script) {
272944
272944
  return insert_index;
272945
272945
  }
272946
272946
  function find_exported_fn(body, name2) {
272947
+ console.log(body);
272947
272948
  for (const statement of body) {
272949
+ console.log(statement);
272948
272950
  if (statement.type !== "ExportNamedDeclaration") {
272949
272951
  continue;
272950
272952
  }
@@ -272960,8 +272962,15 @@ function find_exported_fn(body, name2) {
272960
272962
  continue;
272961
272963
  }
272962
272964
  const declaration = value2.declarations[0];
272963
- if (declaration.init?.type === "FunctionExpression" || declaration.init?.type === "ArrowFunctionExpression") {
272964
- return declaration.init;
272965
+ let { init } = declaration;
272966
+ if (!init) {
272967
+ continue;
272968
+ }
272969
+ if (init.type === "TSSatisfiesExpression") {
272970
+ init = init.expression;
272971
+ }
272972
+ if (init.type === "FunctionExpression" || init.type === "ArrowFunctionExpression") {
272973
+ return init;
272965
272974
  }
272966
272975
  } else {
272967
272976
  continue;
@@ -302327,7 +302336,7 @@ import_fs.default.readdirSync = function(filepath, options) {
302327
302336
  if (is_root_route(posix_filepath) && !contains2("+layout.svelte")) {
302328
302337
  result.push(virtual_file("+layout.svelte", options));
302329
302338
  }
302330
- if (is_root_route(posix_filepath) && !contains2("+layout.server.js", "+layout.server.ts")) {
302339
+ if (is_root_route(posix_filepath) && !contains2("+layout.server.js", "+layout.server.ts") && !plugin_config(_config).static) {
302331
302340
  result.push(virtual_file("+layout.server.js", options));
302332
302341
  }
302333
302342
  if (is_root_route(posix_filepath) && !contains2("+layout.js", "+layout.ts")) {
@@ -303369,6 +303378,7 @@ async function validateDocuments({
303369
303378
 
303370
303379
  // src/plugin/index.ts
303371
303380
  var framework = "svelte";
303381
+ var _config;
303372
303382
  var HoudiniSveltePlugin = async () => ({
303373
303383
  order: "core",
303374
303384
  extensions: [".svelte"],
@@ -303438,6 +303448,7 @@ export const error = svelteKitError
303438
303448
  ...fsPatch_default(() => framework)
303439
303449
  },
303440
303450
  async after_load(cfg) {
303451
+ _config = cfg;
303441
303452
  const cfgPlugin = plugin_config(cfg);
303442
303453
  let client_file_exists = false;
303443
303454
  if (path_exports.extname(cfgPlugin.client)) {
@@ -12406,21 +12406,21 @@ var require_lexicographicSortSchema4 = __commonJS({
12406
12406
  }));
12407
12407
  }
12408
12408
  if ((0, _definition.isInterfaceType)(type)) {
12409
- var _config = type.toConfig();
12410
- return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config), {}, {
12409
+ var _config2 = type.toConfig();
12410
+ return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config2), {}, {
12411
12411
  interfaces: function interfaces() {
12412
- return sortTypes(_config.interfaces);
12412
+ return sortTypes(_config2.interfaces);
12413
12413
  },
12414
12414
  fields: function fields() {
12415
- return sortFields(_config.fields);
12415
+ return sortFields(_config2.fields);
12416
12416
  }
12417
12417
  }));
12418
12418
  }
12419
12419
  if ((0, _definition.isUnionType)(type)) {
12420
- var _config2 = type.toConfig();
12421
- return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config2), {}, {
12420
+ var _config22 = type.toConfig();
12421
+ return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config22), {}, {
12422
12422
  types: function types13() {
12423
- return sortTypes(_config2.types);
12423
+ return sortTypes(_config22.types);
12424
12424
  }
12425
12425
  }));
12426
12426
  }
@@ -104246,21 +104246,21 @@ var require_lexicographicSortSchema2 = __commonJS3({
104246
104246
  }));
104247
104247
  }
104248
104248
  if ((0, _definition.isInterfaceType)(type)) {
104249
- var _config = type.toConfig();
104250
- return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config), {}, {
104249
+ var _config2 = type.toConfig();
104250
+ return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config2), {}, {
104251
104251
  interfaces: function interfaces() {
104252
- return sortTypes(_config.interfaces);
104252
+ return sortTypes(_config2.interfaces);
104253
104253
  },
104254
104254
  fields: function fields() {
104255
- return sortFields(_config.fields);
104255
+ return sortFields(_config2.fields);
104256
104256
  }
104257
104257
  }));
104258
104258
  }
104259
104259
  if ((0, _definition.isUnionType)(type)) {
104260
- var _config2 = type.toConfig();
104261
- return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config2), {}, {
104260
+ var _config22 = type.toConfig();
104261
+ return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config22), {}, {
104262
104262
  types: function types14() {
104263
- return sortTypes(_config2.types);
104263
+ return sortTypes(_config22.types);
104264
104264
  }
104265
104265
  }));
104266
104266
  }
@@ -164391,21 +164391,21 @@ var require_lexicographicSortSchema3 = __commonJS4({
164391
164391
  }));
164392
164392
  }
164393
164393
  if ((0, _definition.isInterfaceType)(type)) {
164394
- var _config = type.toConfig();
164395
- return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config), {}, {
164394
+ var _config2 = type.toConfig();
164395
+ return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config2), {}, {
164396
164396
  interfaces: function interfaces() {
164397
- return sortTypes(_config.interfaces);
164397
+ return sortTypes(_config2.interfaces);
164398
164398
  },
164399
164399
  fields: function fields() {
164400
- return sortFields(_config.fields);
164400
+ return sortFields(_config2.fields);
164401
164401
  }
164402
164402
  }));
164403
164403
  }
164404
164404
  if ((0, _definition.isUnionType)(type)) {
164405
- var _config2 = type.toConfig();
164406
- return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config2), {}, {
164405
+ var _config22 = type.toConfig();
164406
+ return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config22), {}, {
164407
164407
  types: function types14() {
164408
- return sortTypes(_config2.types);
164408
+ return sortTypes(_config22.types);
164409
164409
  }
164410
164410
  }));
164411
164411
  }
@@ -272933,7 +272933,9 @@ function find_insert_index(script) {
272933
272933
  return insert_index;
272934
272934
  }
272935
272935
  function find_exported_fn(body, name2) {
272936
+ console.log(body);
272936
272937
  for (const statement of body) {
272938
+ console.log(statement);
272937
272939
  if (statement.type !== "ExportNamedDeclaration") {
272938
272940
  continue;
272939
272941
  }
@@ -272949,8 +272951,15 @@ function find_exported_fn(body, name2) {
272949
272951
  continue;
272950
272952
  }
272951
272953
  const declaration = value2.declarations[0];
272952
- if (declaration.init?.type === "FunctionExpression" || declaration.init?.type === "ArrowFunctionExpression") {
272953
- return declaration.init;
272954
+ let { init } = declaration;
272955
+ if (!init) {
272956
+ continue;
272957
+ }
272958
+ if (init.type === "TSSatisfiesExpression") {
272959
+ init = init.expression;
272960
+ }
272961
+ if (init.type === "FunctionExpression" || init.type === "ArrowFunctionExpression") {
272962
+ return init;
272954
272963
  }
272955
272964
  } else {
272956
272965
  continue;
@@ -302316,7 +302325,7 @@ filesystem.readdirSync = function(filepath, options) {
302316
302325
  if (is_root_route(posix_filepath) && !contains2("+layout.svelte")) {
302317
302326
  result.push(virtual_file("+layout.svelte", options));
302318
302327
  }
302319
- if (is_root_route(posix_filepath) && !contains2("+layout.server.js", "+layout.server.ts")) {
302328
+ if (is_root_route(posix_filepath) && !contains2("+layout.server.js", "+layout.server.ts") && !plugin_config(_config).static) {
302320
302329
  result.push(virtual_file("+layout.server.js", options));
302321
302330
  }
302322
302331
  if (is_root_route(posix_filepath) && !contains2("+layout.js", "+layout.ts")) {
@@ -303358,6 +303367,7 @@ async function validateDocuments({
303358
303367
 
303359
303368
  // src/plugin/index.ts
303360
303369
  var framework = "svelte";
303370
+ var _config;
303361
303371
  var HoudiniSveltePlugin = async () => ({
303362
303372
  order: "core",
303363
303373
  extensions: [".svelte"],
@@ -303427,6 +303437,7 @@ export const error = svelteKitError
303427
303437
  ...fsPatch_default(() => framework)
303428
303438
  },
303429
303439
  async after_load(cfg) {
303440
+ _config = cfg;
303430
303441
  const cfgPlugin = plugin_config(cfg);
303431
303442
  let client_file_exists = false;
303432
303443
  if (path_exports.extname(cfgPlugin.client)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-svelte",
3
- "version": "0.19.1",
3
+ "version": "0.19.3",
4
4
  "description": "The svelte plugin for houdini",
5
5
  "keywords": [
6
6
  "typescript",
@@ -31,7 +31,7 @@
31
31
  "recast": "^0.23.1",
32
32
  "svelte": "^3.55.0",
33
33
  "vite": "^4.0.1",
34
- "houdini": "^0.19.1"
34
+ "houdini": "^0.19.3"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "graphql": "^14.0.0 || ^15.0.0"