tsdown-config-silverwind 1.5.5 → 1.6.0

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/dist/index.d.ts CHANGED
@@ -14,6 +14,7 @@ declare function base({
14
14
  }: CustomConfig): UserConfig;
15
15
  declare function nodeLib({
16
16
  url,
17
+ outputOptions,
17
18
  ...other
18
19
  }: CustomConfig): UserConfig;
19
20
  declare function webLib({
@@ -22,6 +23,7 @@ declare function webLib({
22
23
  }: CustomConfig): UserConfig;
23
24
  declare function nodeCli({
24
25
  url,
26
+ outputOptions,
25
27
  ...other
26
28
  }: CustomConfig): UserConfig;
27
29
  //#endregion
package/dist/index.js CHANGED
@@ -38,14 +38,20 @@ function base({ url, entry, report, loader, outputOptions, ...other }) {
38
38
  ...outputOptions
39
39
  },
40
40
  fixedExtension: false,
41
+ failOnWarn: true,
42
+ globImport: false,
41
43
  ...other
42
44
  };
43
45
  }
44
- function nodeLib({ url, ...other }) {
46
+ function nodeLib({ url, outputOptions, ...other }) {
45
47
  return base({
46
48
  platform: "node",
47
49
  sourcemap: false,
48
50
  minify: false,
51
+ outputOptions: {
52
+ inlineDynamicImports: true,
53
+ ...outputOptions
54
+ },
49
55
  url,
50
56
  ...other
51
57
  });
@@ -60,11 +66,15 @@ function webLib({ url, ...other }) {
60
66
  ...other
61
67
  });
62
68
  }
63
- function nodeCli({ url, ...other }) {
69
+ function nodeCli({ url, outputOptions, ...other }) {
64
70
  return nodeLib({
65
71
  platform: "node",
66
72
  sourcemap: false,
67
73
  minify: true,
74
+ outputOptions: {
75
+ inlineDynamicImports: true,
76
+ ...outputOptions
77
+ },
68
78
  url,
69
79
  ...other
70
80
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsdown-config-silverwind",
3
- "version": "1.5.5",
3
+ "version": "1.6.0",
4
4
  "description": "Shared tsdown configuration",
5
5
  "author": "silverwind <me@silverwind.io>",
6
6
  "repository": "silverwind/tsdown-config-silverwind",
@@ -18,6 +18,7 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/node": "24.10.1",
21
+ "@typescript/native-preview": "7.0.0-dev.20251204.1",
21
22
  "eslint": "9.39.1",
22
23
  "eslint-config-silverwind": "112.1.0",
23
24
  "tsdown": "0.17.0-beta.6",