File tree 1 file changed +11
-15
lines changed
1 file changed +11
-15
lines changed Original file line number Diff line number Diff line change 1
- import * as fs from 'fs' ;
2
-
3
1
import commonjs from '@rollup/plugin-commonjs' ;
4
2
5
3
import { insertAt , makeBaseBundleConfig , makeConfigVariants } from '../../rollup.config' ;
6
4
7
5
const builds = [ ] ;
8
6
9
- const integrationSourceFiles = fs . readdirSync ( './src' ) . filter ( file => file != 'index.ts' ) ;
7
+ const file = process . env . INTEGRATION_FILE ;
10
8
11
- integrationSourceFiles . forEach ( file => {
12
- const baseBundleConfig = makeBaseBundleConfig ( {
13
- input : `src/${ file } ` ,
14
- isAddOn : true ,
15
- jsVersion : 'es5' ,
16
- licenseTitle : '@sentry/integrations' ,
17
- outputFileBase : `build/${ file . replace ( '.ts' , '' ) } ` ,
18
- } ) ;
9
+ const baseBundleConfig = makeBaseBundleConfig ( {
10
+ input : `src/${ file } ` ,
11
+ isAddOn : true ,
12
+ jsVersion : 'es5' ,
13
+ licenseTitle : '@sentry/integrations' ,
14
+ outputFileBase : `build/${ file . replace ( '.ts' , '' ) } ` ,
15
+ } ) ;
19
16
20
- // TODO We only need `commonjs` for localforage (used in the offline plugin). Once that's fixed, this can come out.
21
- baseBundleConfig . plugins = insertAt ( baseBundleConfig . plugins , - 2 , commonjs ( ) ) ;
17
+ // TODO We only need `commonjs` for localforage (used in the offline plugin). Once that's fixed, this can come out.
18
+ baseBundleConfig . plugins = insertAt ( baseBundleConfig . plugins , - 2 , commonjs ( ) ) ;
22
19
23
- builds . push ( ...makeConfigVariants ( baseBundleConfig ) ) ;
24
- } ) ;
20
+ builds . push ( ...makeConfigVariants ( baseBundleConfig ) ) ;
25
21
26
22
export default builds ;
You can’t perform that action at this time.
0 commit comments