-
Notifications
You must be signed in to change notification settings - Fork 737
Closed
Labels
Description
This is preparation for #1041.
rolldown/packages/rolldown/src/utils/normalize-output-options.ts
Lines 30 to 52 in 0b8dbaa
| exports: exports ?? 'auto', | |
| hashCharacters: hashCharacters ?? 'base64', | |
| sourcemap: sourcemap ?? false, | |
| sourcemapIgnoreList: | |
| typeof sourcemapIgnoreList === 'function' | |
| ? sourcemapIgnoreList | |
| : sourcemapIgnoreList === false | |
| ? () => false | |
| : (relativeSourcePath: string, _sourcemapPath: string) => | |
| relativeSourcePath.includes('node_modules'), | |
| sourcemapPathTransform, | |
| banner: getAddon(opts, 'banner'), | |
| footer: getAddon(opts, 'footer'), | |
| intro: getAddon(opts, 'intro'), | |
| outro: getAddon(opts, 'outro'), | |
| esModule: esModule ?? 'if-default-prop', | |
| // TODO support functions | |
| globals: globals ?? {}, | |
| entryFileNames: entryFileNames ?? '[name].js', | |
| chunkFileNames: chunkFileNames ?? '[name]-[hash].js', | |
| cssEntryFileNames: cssEntryFileNames ?? '[name].css', | |
| cssChunkFileNames: cssChunkFileNames ?? '[name]-[hash].css', | |
| assetFileNames: assetFileNames ?? 'assets/[name]-[hash][extname]', |
- All these
??should be removed.
| plugins: RolldownPlugin[] | |
| format: InternalModuleFormat | |
| exports: 'auto' | 'named' | 'default' | 'none' | |
| sourcemap: boolean | 'inline' | 'hidden' | |
| sourcemapIgnoreList: SourcemapIgnoreListOption | |
| banner: AddonFunction | |
| footer: AddonFunction | |
| intro: AddonFunction | |
| outro: AddonFunction | |
| esModule: boolean | 'if-default-prop' | |
| assetFileNames: string | |
| inlineDynamicImports: boolean |
- Inconsistent
NormalizedOutputOptionscompared to rollup is acceptable for now.
See #2834 for example.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackPriority
None yet