@powerlines/plugin-date 0.12.228 → 0.12.230

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.
@@ -13,7 +13,7 @@ function dateFnsModule(context) {
13
13
  /**
14
14
  * The Date module provides utility functions for date manipulation and formatting
15
15
  *
16
- * @module ${context.config.output.builtinPrefix}:date
16
+ * @module ${context.config.framework}:date
17
17
  */
18
18
 
19
19
  ${(0, powerlines_lib_utilities_file_header.getFileHeader)(context)}
@@ -12,7 +12,7 @@ function dateFnsModule(context) {
12
12
  /**
13
13
  * The Date module provides utility functions for date manipulation and formatting
14
14
  *
15
- * @module ${context.config.output.builtinPrefix}:date
15
+ * @module ${context.config.framework}:date
16
16
  */
17
17
 
18
18
  ${getFileHeader(context)}
@@ -13,7 +13,7 @@ function dayjsModule(context) {
13
13
  /**
14
14
  * The Date module provides utility functions for date manipulation and formatting
15
15
  *
16
- * @module ${context.config.output.builtinPrefix}:date
16
+ * @module ${context.config.framework}:date
17
17
  */
18
18
 
19
19
  ${(0, powerlines_lib_utilities_file_header.getFileHeader)(context)}
@@ -12,7 +12,7 @@ function dayjsModule(context) {
12
12
  /**
13
13
  * The Date module provides utility functions for date manipulation and formatting
14
14
  *
15
- * @module ${context.config.output.builtinPrefix}:date
15
+ * @module ${context.config.framework}:date
16
16
  */
17
17
 
18
18
  ${getFileHeader(context)}
@@ -13,7 +13,7 @@ function luxonModule(context) {
13
13
  /**
14
14
  * The Date module provides utility functions for date manipulation and formatting
15
15
  *
16
- * @module ${context.config.output.builtinPrefix}:date
16
+ * @module ${context.config.framework}:date
17
17
  */
18
18
 
19
19
  ${(0, powerlines_lib_utilities_file_header.getFileHeader)(context)}
@@ -12,7 +12,7 @@ function luxonModule(context) {
12
12
  /**
13
13
  * The Date module provides utility functions for date manipulation and formatting
14
14
  *
15
- * @module ${context.config.output.builtinPrefix}:date
15
+ * @module ${context.config.framework}:date
16
16
  */
17
17
 
18
18
  ${getFileHeader(context)}
@@ -13,7 +13,7 @@ function momentModule(context) {
13
13
  /**
14
14
  * The Date module provides utility functions for date manipulation and formatting
15
15
  *
16
- * @module ${context.config.output.builtinPrefix}:date
16
+ * @module ${context.config.framework}:date
17
17
  */
18
18
 
19
19
  ${(0, powerlines_lib_utilities_file_header.getFileHeader)(context)}
@@ -12,7 +12,7 @@ function momentModule(context) {
12
12
  /**
13
13
  * The Date module provides utility functions for date manipulation and formatting
14
14
  *
15
- * @module ${context.config.output.builtinPrefix}:date
15
+ * @module ${context.config.framework}:date
16
16
  */
17
17
 
18
18
  ${getFileHeader(context)}
package/dist/index.cjs CHANGED
@@ -8,7 +8,6 @@ const require_moment = require('./components/moment.cjs');
8
8
  require('./components/index.cjs');
9
9
  let __powerlines_plugin_env = require("@powerlines/plugin-env");
10
10
  __powerlines_plugin_env = require_rolldown_runtime.__toESM(__powerlines_plugin_env);
11
- let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
12
11
 
13
12
  //#region src/index.ts
14
13
  /**
@@ -18,7 +17,7 @@ function plugin(options = {}) {
18
17
  return [(0, __powerlines_plugin_env.default)(options.env), {
19
18
  name: "date",
20
19
  async config() {
21
- this.log(__storm_software_config_tools_types.LogLevelLabel.TRACE, "Providing default configuration for the Powerlines `date` build plugin.");
20
+ this.debug("Providing default configuration for the Powerlines `date` build plugin.");
22
21
  const config = { date: require_defu.defu(options, { type: "date-fns" }) };
23
22
  if (!config.date.type || ![
24
23
  "date-fns",
@@ -26,18 +25,18 @@ function plugin(options = {}) {
26
25
  "luxon",
27
26
  "moment"
28
27
  ].includes(config.date.type)) {
29
- if (config.date.type) this.log(__storm_software_config_tools_types.LogLevelLabel.WARN, `Invalid date library type "${config.date.type}" specified. Defaulting to "date-fns".`);
28
+ if (config.date.type) this.warn(`Invalid date library type "${config.date.type}" specified. Defaulting to "date-fns".`);
30
29
  config.date.type = "date-fns";
31
30
  }
32
- this.log(__storm_software_config_tools_types.LogLevelLabel.DEBUG, `Using date library: ${config.date.type}`);
31
+ this.debug(`Using date library: ${config.date.type}`);
33
32
  return config;
34
33
  },
35
34
  async configResolved() {
36
- this.log(__storm_software_config_tools_types.LogLevelLabel.TRACE, `Environment plugin configuration has been resolved for the Powerlines project.`);
35
+ this.debug(`Environment plugin configuration has been resolved for the Powerlines project.`);
37
36
  this.dependencies[this.config.date.type] = "latest";
38
37
  },
39
38
  async prepare() {
40
- this.log(__storm_software_config_tools_types.LogLevelLabel.TRACE, `Preparing the Date runtime artifacts for the Powerlines project.`);
39
+ this.debug(`Preparing the Date runtime artifacts for the Powerlines project.`);
41
40
  let dateModule;
42
41
  switch (this.config.date.type) {
43
42
  case "dayjs":
package/dist/index.mjs CHANGED
@@ -5,7 +5,6 @@ import { luxonModule } from "./components/luxon.mjs";
5
5
  import { momentModule } from "./components/moment.mjs";
6
6
  import "./components/index.mjs";
7
7
  import env from "@powerlines/plugin-env";
8
- import { LogLevelLabel } from "@storm-software/config-tools/types";
9
8
 
10
9
  //#region src/index.ts
11
10
  /**
@@ -15,7 +14,7 @@ function plugin(options = {}) {
15
14
  return [env(options.env), {
16
15
  name: "date",
17
16
  async config() {
18
- this.log(LogLevelLabel.TRACE, "Providing default configuration for the Powerlines `date` build plugin.");
17
+ this.debug("Providing default configuration for the Powerlines `date` build plugin.");
19
18
  const config = { date: defu(options, { type: "date-fns" }) };
20
19
  if (!config.date.type || ![
21
20
  "date-fns",
@@ -23,18 +22,18 @@ function plugin(options = {}) {
23
22
  "luxon",
24
23
  "moment"
25
24
  ].includes(config.date.type)) {
26
- if (config.date.type) this.log(LogLevelLabel.WARN, `Invalid date library type "${config.date.type}" specified. Defaulting to "date-fns".`);
25
+ if (config.date.type) this.warn(`Invalid date library type "${config.date.type}" specified. Defaulting to "date-fns".`);
27
26
  config.date.type = "date-fns";
28
27
  }
29
- this.log(LogLevelLabel.DEBUG, `Using date library: ${config.date.type}`);
28
+ this.debug(`Using date library: ${config.date.type}`);
30
29
  return config;
31
30
  },
32
31
  async configResolved() {
33
- this.log(LogLevelLabel.TRACE, `Environment plugin configuration has been resolved for the Powerlines project.`);
32
+ this.debug(`Environment plugin configuration has been resolved for the Powerlines project.`);
34
33
  this.dependencies[this.config.date.type] = "latest";
35
34
  },
36
35
  async prepare() {
37
- this.log(LogLevelLabel.TRACE, `Preparing the Date runtime artifacts for the Powerlines project.`);
36
+ this.debug(`Preparing the Date runtime artifacts for the Powerlines project.`);
38
37
  let dateModule;
39
38
  switch (this.config.date.type) {
40
39
  case "dayjs":
@@ -1,10 +1,8 @@
1
- import "../../../powerlines/src/types/config.mjs";
2
- import "../../../powerlines/src/types/resolved.mjs";
3
- import "../../../powerlines/src/types/context.mjs";
4
1
  import { TOCOptions } from "./toc.mjs";
5
2
  import { Config } from "automd";
6
3
 
7
4
  //#region ../plugin-automd/src/types/plugin.d.ts
5
+
8
6
  type AutoMDPluginOptions = Omit<Config, "dir" | "watch" | "onWatch" | "prefix"> & {
9
7
  /**
10
8
  * Path to the AutoMD configuration file.
@@ -1,9 +1,7 @@
1
1
  import { Reflection } from "../../../deepkit/src/types.mjs";
2
2
  import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "../../../plugin-alloy/src/types/plugin.mjs";
3
- import "../../../plugin-alloy/src/types/index.mjs";
4
3
  import { AutoMDPluginOptions } from "../../../plugin-automd/src/types/plugin.mjs";
5
4
  import { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig } from "../../../plugin-babel/src/types/plugin.mjs";
6
- import "../../../plugin-babel/src/types/index.mjs";
7
5
  import { EnvInterface, SecretsInterface } from "./runtime.mjs";
8
6
  import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
9
7
  import { Children } from "@alloy-js/core";
@@ -1,5 +1,3 @@
1
- import "../../types/hooks.mjs";
2
- import "../../types/resolved.mjs";
3
1
  import { SelectHooksOptions } from "../../types/context.mjs";
4
2
  import { MaybePromise } from "@stryke/types/base";
5
3
 
@@ -1,4 +1,3 @@
1
- import "./context.mjs";
2
1
  import { ArrayValues } from "@stryke/types/array";
3
2
  import { MaybePromise } from "@stryke/types/base";
4
3
 
@@ -4,17 +4,18 @@ import { StoragePort, StoragePreset } from "./fs.mjs";
4
4
  import { TSConfig } from "./tsconfig.mjs";
5
5
  import { PluginContext } from "./context.mjs";
6
6
  import { Plugin } from "./plugin.mjs";
7
- import { LogLevelLabel } from "@storm-software/config-tools/types";
8
7
  import { MaybePromise } from "@stryke/types/base";
9
8
  import { PreviewOptions } from "vite";
10
9
  import { transformAsync } from "@babel/core";
11
10
  import { Format } from "@storm-software/build-tools/types";
11
+ import { LogLevelLabel } from "@storm-software/config-tools/types";
12
12
  import { StormWorkspaceConfig } from "@storm-software/config/types";
13
13
  import { TypeDefinitionParameter } from "@stryke/types/configuration";
14
14
  import { AssetGlob } from "@stryke/types/file";
15
15
  import { DateString } from "compatx";
16
16
 
17
17
  //#region ../powerlines/src/types/config.d.ts
18
+ type LogLevel = "error" | "warn" | "info" | "debug" | "trace";
18
19
  type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
19
20
  /**
20
21
  * The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
@@ -102,15 +103,6 @@ interface OutputConfig {
102
103
  * @defaultValue "\{projectRoot\}/powerlines.d.ts"
103
104
  */
104
105
  dts?: string | false;
105
- /**
106
- * A prefix to use for identifying builtin modules
107
- *
108
- * @remarks
109
- * This prefix will be used to identify all builtin modules generated during the "prepare" phase. An example builtin ID for a module called `"utils"` would be `"{builtinPrefix}:utils"`.
110
- *
111
- * @defaultValue "powerlines"
112
- */
113
- builtinPrefix?: string;
114
106
  /**
115
107
  * The module format of the output files
116
108
  *
@@ -273,7 +265,7 @@ interface CommonUserConfig extends BaseConfig {
273
265
  *
274
266
  * @defaultValue "info"
275
267
  */
276
- logLevel?: LogLevelLabel | null;
268
+ logLevel?: LogLevel | null;
277
269
  /**
278
270
  * A custom logger function to use for logging messages
279
271
  */
@@ -346,7 +338,7 @@ interface CommonUserConfig extends BaseConfig {
346
338
  * A string identifier that allows a child framework or tool to identify itself when using Powerlines.
347
339
  *
348
340
  * @remarks
349
- * If no values are provided for {@link OutputConfig.dts | output.dts}, {@link OutputConfig.builtinPrefix | output.builtinPrefix}, or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
341
+ * If no values are provided for {@link OutputConfig.dts | output.dts} or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
350
342
  *
351
343
  * @defaultValue "powerlines"
352
344
  */
@@ -440,4 +432,4 @@ type DeployInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Inlin
440
432
  command: "deploy";
441
433
  };
442
434
  //#endregion
443
- export { BabelUserConfig, BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
435
+ export { BabelUserConfig, BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, LogLevel, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
@@ -226,6 +226,13 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
226
226
  * The builtin module id that exist in the Powerlines virtual file system
227
227
  */
228
228
  builtins: string[];
229
+ /**
230
+ * The alias mappings for the project used during module resolution
231
+ *
232
+ * @remarks
233
+ * This includes both the built-in module aliases as well as any custom aliases defined in the build configuration.
234
+ */
235
+ alias: Record<string, string>;
229
236
  /**
230
237
  * The {@link Project} instance used for type reflection and module manipulation
231
238
  *
@@ -1,5 +1,5 @@
1
1
  import { BuilderVariant } from "./build.mjs";
2
- import { BabelUserConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.mjs";
2
+ import { BabelUserConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LogLevel, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.mjs";
3
3
  import { NonUndefined } from "@stryke/types/base";
4
4
  import { ResolvedPreviewOptions } from "vite";
5
5
  import { TypeDefinition } from "@stryke/types/configuration";
@@ -77,7 +77,7 @@ type ResolvedConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Omit<TUse
77
77
  *
78
78
  * @defaultValue "info"
79
79
  */
80
- logLevel: "error" | "warn" | "info" | "debug" | "trace" | null;
80
+ logLevel: LogLevel | null;
81
81
  };
82
82
  type ViteResolvedConfig = ResolvedConfig<ViteUserConfig>;
83
83
  type WebpackResolvedConfig = ResolvedConfig<WebpackUserConfig>;
@@ -1,5 +1,4 @@
1
1
  import { BuilderVariant, InferUnpluginVariant, UnpluginBuilderVariant } from "./build.mjs";
2
- import "./config.mjs";
3
2
  import { InferResolvedConfig } from "./resolved.mjs";
4
3
  import { Context } from "./context.mjs";
5
4
  import { API } from "./api.mjs";
@@ -15,6 +15,7 @@ import { AssetGlob } from "@stryke/types/file";
15
15
  import { DateString } from "compatx";
16
16
 
17
17
  //#region ../powerlines/src/types/config.d.ts
18
+ type LogLevel = "error" | "warn" | "info" | "debug" | "trace";
18
19
  type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
19
20
  /**
20
21
  * The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
@@ -102,15 +103,6 @@ interface OutputConfig {
102
103
  * @defaultValue "\{projectRoot\}/powerlines.d.ts"
103
104
  */
104
105
  dts?: string | false;
105
- /**
106
- * A prefix to use for identifying builtin modules
107
- *
108
- * @remarks
109
- * This prefix will be used to identify all builtin modules generated during the "prepare" phase. An example builtin ID for a module called `"utils"` would be `"{builtinPrefix}:utils"`.
110
- *
111
- * @defaultValue "powerlines"
112
- */
113
- builtinPrefix?: string;
114
106
  /**
115
107
  * The module format of the output files
116
108
  *
@@ -273,7 +265,7 @@ interface CommonUserConfig extends BaseConfig {
273
265
  *
274
266
  * @defaultValue "info"
275
267
  */
276
- logLevel?: LogLevelLabel | null;
268
+ logLevel?: LogLevel | null;
277
269
  /**
278
270
  * A custom logger function to use for logging messages
279
271
  */
@@ -346,7 +338,7 @@ interface CommonUserConfig extends BaseConfig {
346
338
  * A string identifier that allows a child framework or tool to identify itself when using Powerlines.
347
339
  *
348
340
  * @remarks
349
- * If no values are provided for {@link OutputConfig.dts | output.dts}, {@link OutputConfig.builtinPrefix | output.builtinPrefix}, or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
341
+ * If no values are provided for {@link OutputConfig.dts | output.dts} or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
350
342
  *
351
343
  * @defaultValue "powerlines"
352
344
  */
@@ -440,4 +432,4 @@ type DeployInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Inlin
440
432
  command: "deploy";
441
433
  };
442
434
  //#endregion
443
- export { BabelUserConfig, BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
435
+ export { BabelUserConfig, BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, LogLevel, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
@@ -226,6 +226,13 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
226
226
  * The builtin module id that exist in the Powerlines virtual file system
227
227
  */
228
228
  builtins: string[];
229
+ /**
230
+ * The alias mappings for the project used during module resolution
231
+ *
232
+ * @remarks
233
+ * This includes both the built-in module aliases as well as any custom aliases defined in the build configuration.
234
+ */
235
+ alias: Record<string, string>;
229
236
  /**
230
237
  * The {@link Project} instance used for type reflection and module manipulation
231
238
  *
@@ -1,5 +1,5 @@
1
1
  import { BuilderVariant } from "./build.cjs";
2
- import { BabelUserConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.cjs";
2
+ import { BabelUserConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LogLevel, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.cjs";
3
3
  import { NonUndefined } from "@stryke/types/base";
4
4
  import { ResolvedPreviewOptions } from "vite";
5
5
  import { TypeDefinition } from "@stryke/types/configuration";
@@ -77,7 +77,7 @@ type ResolvedConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Omit<TUse
77
77
  *
78
78
  * @defaultValue "info"
79
79
  */
80
- logLevel: "error" | "warn" | "info" | "debug" | "trace" | null;
80
+ logLevel: LogLevel | null;
81
81
  };
82
82
  type ViteResolvedConfig = ResolvedConfig<ViteUserConfig>;
83
83
  type WebpackResolvedConfig = ResolvedConfig<WebpackUserConfig>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-date",
3
- "version": "0.12.228",
3
+ "version": "0.12.230",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin for injecting static .env configuration values to the code so that they're accessible at runtime.",
6
6
  "repository": {
@@ -128,15 +128,15 @@
128
128
  "files": ["dist/**/*"],
129
129
  "keywords": ["powerlines", "storm-software", "powerlines-plugin"],
130
130
  "dependencies": {
131
- "@powerlines/plugin-env": "^0.15.90",
131
+ "@powerlines/plugin-env": "^0.15.92",
132
132
  "@storm-software/config-tools": "^1.188.80",
133
133
  "@stryke/path": "^0.26.0",
134
- "powerlines": "^0.37.71"
134
+ "powerlines": "^0.37.73"
135
135
  },
136
136
  "devDependencies": {
137
- "@powerlines/plugin-plugin": "^0.12.149",
137
+ "@powerlines/plugin-plugin": "^0.12.151",
138
138
  "@types/node": "^24.10.9"
139
139
  },
140
140
  "publishConfig": { "access": "public" },
141
- "gitHead": "6fd6de6c956acc53f73c34d8b19827d094e604af"
141
+ "gitHead": "df743ef7ebac849eb4ce90899884df4758b61172"
142
142
  }
@@ -1,2 +0,0 @@
1
- import "../../../powerlines/src/types/resolved.mjs";
2
- import { Children } from "@alloy-js/core";
@@ -1,2 +0,0 @@
1
- import "./components.mjs";
2
- import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "./plugin.mjs";
@@ -1 +0,0 @@
1
- import { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig } from "./plugin.mjs";