You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During transformation, file formats are automatically resolved, and in most cases, no additional configuration is required.
109
109
110
-
The default module environment for generated files is `esm`, which means output files will have a `.mjs` extension unless otherwise specified. For TypeScript declarations, the corresponding extension will be `.d.mts`.
110
+
The default module environment for generated files is `esm`, which means output files will have a `.js` extension unless otherwise specified. For TypeScript declarations, the corresponding extension will be `.d.ts`.
111
111
112
112
Formats can also be explicitly specified for each entry, if needed.
113
113
114
114
### Inputs
115
115
116
116
Default transformation behavior for all `chunk` entries:
117
117
118
-
-`./srcDir/file.js` → `./outDir/file.mjs`
119
-
-`./srcDir/file.mjs` → `./outDir/file.mjs`
118
+
-`./srcDir/file.js` → `./outDir/file.js`
119
+
-`./srcDir/file.mjs` → `./outDir/file.js`
120
120
-`./srcDir/file.cjs` → `./outDir/file.cjs`
121
-
-`./srcDir/file.ts` → `./outDir/file.mjs`
122
-
-`./srcDir/file.mts` → `./outDir/file.mjs`
121
+
-`./srcDir/file.ts` → `./outDir/file.js`
122
+
-`./srcDir/file.mts` → `./outDir/file.js`
123
123
-`./srcDir/file.cts` → `./outDir/file.cjs`
124
124
125
125
### Declarations
126
126
127
127
Default transformation behavior for all `dts` entries:
128
128
129
-
-`./srcDir/file.ts` → `./outDir/file.d.mts`
129
+
-`./srcDir/file.ts` → `./outDir/file.d.ts`
130
130
131
131
## Options
132
132
@@ -147,8 +147,8 @@ import { defineConfig } from '@hypernym/bundler'
0 commit comments