-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: simplify output formats for dist builds
- Loading branch information
Showing
5 changed files
with
170 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
import { Config } from '../@types'; | ||
|
||
export const config: Config = { | ||
defaults: { | ||
src: './src', | ||
|
||
out: './build', | ||
|
||
entryFile: './index', | ||
|
||
/** | ||
* allowed file extensions | ||
*/ | ||
extensions: ['.js', '.ts', '.jsx', '.tsx'], | ||
|
||
/** | ||
* boolean indicating if the interop rollup setting should be enabled | ||
*/ | ||
interop: true, | ||
|
||
/** | ||
* boolean indicating if sourcemap should be generated, can be true, false, or 'inline' | ||
*/ | ||
sourcemap: true, | ||
|
||
/** | ||
* minify, only applies to iife and umd builds | ||
*/ | ||
minify: true, | ||
|
||
/** | ||
* applies to umd and iife builds | ||
*/ | ||
globals: {}, | ||
|
||
babelPlugins: [], | ||
|
||
babelPresets: [], | ||
|
||
exclude: [], | ||
|
||
include: [], | ||
|
||
plugins: [], | ||
|
||
/** | ||
* build envs, only applies to iife and umd builds | ||
*/ | ||
envs: ['production', 'development'], | ||
}, | ||
|
||
/** | ||
* cjs build config | ||
*/ | ||
cjs: { | ||
enabled: true, | ||
out: './build/cjs', | ||
}, | ||
|
||
/** | ||
* es build config | ||
*/ | ||
es: { | ||
enabled: true, | ||
out: './build/es', | ||
}, | ||
|
||
/** | ||
* iife build config, disabled by default | ||
*/ | ||
iife: { | ||
enabled: false, | ||
out: './build/iife', | ||
src: 'src/ex', | ||
}, | ||
|
||
/** | ||
* umd build config, disabled by default | ||
*/ | ||
umd: { | ||
enabled: false, | ||
out: './build/umd', | ||
}, | ||
}; |
Oops, something went wrong.