@workleap/swc-configs 2.1.0 → 2.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @workleap/swc-configs
2
2
 
3
+ ## 2.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#120](https://github.com/gsoft-inc/wl-web-configs/pull/120) [`0e66000`](https://github.com/gsoft-inc/wl-web-configs/commit/0e66000b2028cad9c606d3523e3bcf540e6350e2) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated configs
8
+
3
9
  ## 2.1.0
4
10
 
5
11
  ### Minor Changes
package/dist/build.d.mts CHANGED
@@ -2,10 +2,9 @@ import { Config } from '@swc/core';
2
2
  import { SwcConfigTransformer } from './applyTransformers.mjs';
3
3
 
4
4
  interface DefineBuildConfigOptions {
5
- targets: Record<string, string>;
6
5
  parser?: "ecmascript" | "typescript";
7
6
  transformers?: SwcConfigTransformer[];
8
7
  }
9
- declare function defineBuildConfig(options: DefineBuildConfigOptions): Config;
8
+ declare function defineBuildConfig(targets: Record<string, string>, options?: DefineBuildConfigOptions): Config;
10
9
 
11
10
  export { DefineBuildConfigOptions, defineBuildConfig };
package/dist/build.d.ts CHANGED
@@ -2,10 +2,9 @@ import { Config } from '@swc/core';
2
2
  import { SwcConfigTransformer } from './applyTransformers.js';
3
3
 
4
4
  interface DefineBuildConfigOptions {
5
- targets: Record<string, string>;
6
5
  parser?: "ecmascript" | "typescript";
7
6
  transformers?: SwcConfigTransformer[];
8
7
  }
9
- declare function defineBuildConfig(options: DefineBuildConfigOptions): Config;
8
+ declare function defineBuildConfig(targets: Record<string, string>, options?: DefineBuildConfigOptions): Config;
10
9
 
11
10
  export { DefineBuildConfigOptions, defineBuildConfig };
package/dist/build.js CHANGED
@@ -6,9 +6,8 @@ function applyTransformers(config, transformers, context) {
6
6
  }
7
7
 
8
8
  // src/build.ts
9
- function defineBuildConfig(options) {
9
+ function defineBuildConfig(targets, options = {}) {
10
10
  const {
11
- targets,
12
11
  parser = "typescript",
13
12
  transformers = []
14
13
  } = options;
package/dist/build.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export { defineBuildConfig } from './chunk-4XVTQNRR.mjs';
1
+ export { defineBuildConfig } from './chunk-PTGQ44ZX.mjs';
2
2
  import './chunk-3UBBOKDF.mjs';
@@ -1,10 +1,9 @@
1
1
  import { applyTransformers } from './chunk-3UBBOKDF.mjs';
2
2
 
3
3
  // src/dev.ts
4
- function defineDevConfig(options) {
4
+ function defineDevConfig(targets, options = {}) {
5
5
  const {
6
- targets,
7
- fastRefresh = false,
6
+ fastRefresh = true,
8
7
  parser = "typescript",
9
8
  transformers = []
10
9
  } = options;
@@ -1,9 +1,8 @@
1
1
  import { applyTransformers } from './chunk-3UBBOKDF.mjs';
2
2
 
3
3
  // src/build.ts
4
- function defineBuildConfig(options) {
4
+ function defineBuildConfig(targets, options = {}) {
5
5
  const {
6
- targets,
7
6
  parser = "typescript",
8
7
  transformers = []
9
8
  } = options;
package/dist/dev.d.mts CHANGED
@@ -2,11 +2,10 @@ import { Config } from '@swc/core';
2
2
  import { SwcConfigTransformer } from './applyTransformers.mjs';
3
3
 
4
4
  interface DefineDevConfigOptions {
5
- targets: Record<string, string>;
6
5
  fastRefresh?: boolean;
7
6
  parser?: "ecmascript" | "typescript";
8
7
  transformers?: SwcConfigTransformer[];
9
8
  }
10
- declare function defineDevConfig(options: DefineDevConfigOptions): Config;
9
+ declare function defineDevConfig(targets: Record<string, string>, options?: DefineDevConfigOptions): Config;
11
10
 
12
11
  export { DefineDevConfigOptions, defineDevConfig };
package/dist/dev.d.ts CHANGED
@@ -2,11 +2,10 @@ import { Config } from '@swc/core';
2
2
  import { SwcConfigTransformer } from './applyTransformers.js';
3
3
 
4
4
  interface DefineDevConfigOptions {
5
- targets: Record<string, string>;
6
5
  fastRefresh?: boolean;
7
6
  parser?: "ecmascript" | "typescript";
8
7
  transformers?: SwcConfigTransformer[];
9
8
  }
10
- declare function defineDevConfig(options: DefineDevConfigOptions): Config;
9
+ declare function defineDevConfig(targets: Record<string, string>, options?: DefineDevConfigOptions): Config;
11
10
 
12
11
  export { DefineDevConfigOptions, defineDevConfig };
package/dist/dev.js CHANGED
@@ -6,10 +6,9 @@ function applyTransformers(config, transformers, context) {
6
6
  }
7
7
 
8
8
  // src/dev.ts
9
- function defineDevConfig(options) {
9
+ function defineDevConfig(targets, options = {}) {
10
10
  const {
11
- targets,
12
- fastRefresh = false,
11
+ fastRefresh = true,
13
12
  parser = "typescript",
14
13
  transformers = []
15
14
  } = options;
package/dist/dev.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export { defineDevConfig } from './chunk-VPNQWY2U.mjs';
1
+ export { defineDevConfig } from './chunk-HMVMGPPX.mjs';
2
2
  import './chunk-3UBBOKDF.mjs';
package/dist/index.js CHANGED
@@ -82,9 +82,8 @@ function applyTransformers(config, transformers, context) {
82
82
  }
83
83
 
84
84
  // src/build.ts
85
- function defineBuildConfig(options) {
85
+ function defineBuildConfig(targets, options = {}) {
86
86
  const {
87
- targets,
88
87
  parser = "typescript",
89
88
  transformers = []
90
89
  } = options;
@@ -134,10 +133,9 @@ function defineBuildConfig(options) {
134
133
  }
135
134
 
136
135
  // src/dev.ts
137
- function defineDevConfig(options) {
136
+ function defineDevConfig(targets, options = {}) {
138
137
  const {
139
- targets,
140
- fastRefresh = false,
138
+ fastRefresh = true,
141
139
  parser = "typescript",
142
140
  transformers = []
143
141
  } = options;
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  export { browserslistToSwc, createSwcTargetsFromBrowserslistEntries } from './chunk-MGMFB3UY.mjs';
2
- export { defineBuildConfig } from './chunk-4XVTQNRR.mjs';
3
- export { defineDevConfig } from './chunk-VPNQWY2U.mjs';
2
+ export { defineBuildConfig } from './chunk-PTGQ44ZX.mjs';
3
+ export { defineDevConfig } from './chunk-HMVMGPPX.mjs';
4
4
  export { defineJestConfig } from './chunk-MYINGMHM.mjs';
5
5
  import './chunk-3UBBOKDF.mjs';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@workleap/swc-configs",
3
3
  "description": "Workleap recommended SWC configs.",
4
- "version": "2.1.0",
4
+ "version": "2.1.1",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
7
7
  "workleap",
@@ -11,12 +11,12 @@
11
11
  "exports": {
12
12
  ".": {
13
13
  "require": {
14
- "default": "./dist/index.js",
15
- "types": "./dist/index.d.ts"
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.js"
16
16
  },
17
17
  "import": {
18
- "default": "./dist/index.mjs",
19
- "types": "./dist/index.d.mts"
18
+ "types": "./dist/index.d.mts",
19
+ "default": "./dist/index.mjs"
20
20
  }
21
21
  }
22
22
  },
@@ -32,7 +32,7 @@
32
32
  "directory": "packages/swc-configs"
33
33
  },
34
34
  "devDependencies": {
35
- "@swc/core": "1.3.80",
35
+ "@swc/core": "1.3.82",
36
36
  "@swc/helpers": "0.5.1",
37
37
  "@swc/jest": "0.2.29",
38
38
  "@types/jest": "29.5.4",
@@ -43,7 +43,7 @@
43
43
  "typescript": "5.2.2",
44
44
  "@workleap/eslint-plugin": "2.1.0",
45
45
  "@workleap/tsup-configs": "3.0.0",
46
- "@workleap/typescript-configs": "3.0.1"
46
+ "@workleap/typescript-configs": "3.0.2"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@swc/core": "*",