@workleap/swc-configs 1.0.0 → 1.0.1

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,6 +0,0 @@
1
- // src/cloneObjectExceptFunctions.ts
2
- function cloneObjectExceptFunctions(obj) {
3
- return JSON.parse(JSON.stringify(obj));
4
- }
5
-
6
- export { cloneObjectExceptFunctions };
@@ -1,3 +0,0 @@
1
- declare function cloneObjectExceptFunctions<T>(obj: T): T;
2
-
3
- export { cloneObjectExceptFunctions };
@@ -1,8 +0,0 @@
1
- 'use strict';
2
-
3
- // src/cloneObjectExceptFunctions.ts
4
- function cloneObjectExceptFunctions(obj) {
5
- return JSON.parse(JSON.stringify(obj));
6
- }
7
-
8
- exports.cloneObjectExceptFunctions = cloneObjectExceptFunctions;
@@ -1 +0,0 @@
1
- export { cloneObjectExceptFunctions } from './chunk-XCGQZSNA.mjs';
@@ -1,7 +0,0 @@
1
- import { Config } from '@swc/core';
2
-
3
- type ConfigOverrideFunction = (config: Config) => Config;
4
- type ConfigOverride = Config | ConfigOverrideFunction;
5
- declare function resolveOverrides(config: Config, configOverride?: ConfigOverride): Config;
6
-
7
- export { ConfigOverride, ConfigOverrideFunction, resolveOverrides };
@@ -1,20 +0,0 @@
1
- 'use strict';
2
-
3
- // src/resolveOverrides.ts
4
- function resolveOverrides(config, configOverride) {
5
- if (typeof configOverride === "function") {
6
- return {
7
- ...config,
8
- ...configOverride(config)
9
- };
10
- }
11
- if (configOverride) {
12
- return {
13
- ...config,
14
- ...configOverride
15
- };
16
- }
17
- return config;
18
- }
19
-
20
- exports.resolveOverrides = resolveOverrides;
@@ -1 +0,0 @@
1
- export { resolveOverrides } from './chunk-4LXCYXR5.mjs';