File tree Expand file tree Collapse file tree 6 files changed +16
-44
lines changed Expand file tree Collapse file tree 6 files changed +16
-44
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import typescript from 'rollup-plugin-typescript2';
3
3
import resolve from '@rollup/plugin-node-resolve' ;
4
4
import replace from '@rollup/plugin-replace' ;
5
5
6
- import { makeLicensePlugin } from '../../rollup.config' ;
6
+ import { makeLicensePlugin , paths } from '../../rollup.config' ;
7
7
8
8
const licensePlugin = makeLicensePlugin ( ) ;
9
9
@@ -36,14 +36,6 @@ const terserInstance = terser({
36
36
} ,
37
37
} ) ;
38
38
39
- const paths = {
40
- '@sentry/utils' : [ '../utils/src' ] ,
41
- '@sentry/core' : [ '../core/src' ] ,
42
- '@sentry/hub' : [ '../hub/src' ] ,
43
- '@sentry/types' : [ '../types/src' ] ,
44
- '@sentry/minimal' : [ '../minimal/src' ] ,
45
- } ;
46
-
47
39
const plugins = [
48
40
typescript ( {
49
41
tsconfig : 'tsconfig.esm.json' ,
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ import resolve from '@rollup/plugin-node-resolve';
6
6
import commonjs from '@rollup/plugin-commonjs' ;
7
7
import replace from '@rollup/plugin-replace' ;
8
8
9
+ import { paths } from '../../rollup.config' ;
10
+
9
11
const terserInstance = terser ( {
10
12
mangle : {
11
13
// captureExceptions and captureMessage are public API methods and they don't need to be listed here
@@ -27,13 +29,7 @@ const plugins = [
27
29
compilerOptions : {
28
30
declaration : false ,
29
31
declarationMap : false ,
30
- paths : {
31
- '@sentry/utils' : [ '../utils/src' ] ,
32
- '@sentry/core' : [ '../core/src' ] ,
33
- '@sentry/hub' : [ '../hub/src' ] ,
34
- '@sentry/types' : [ '../types/src' ] ,
35
- '@sentry/minimal' : [ '../minimal/src' ] ,
36
- } ,
32
+ paths,
37
33
baseUrl : '.' ,
38
34
} ,
39
35
} ,
Original file line number Diff line number Diff line change @@ -2,19 +2,10 @@ import typescript from 'rollup-plugin-typescript2';
2
2
import resolve from '@rollup/plugin-node-resolve' ;
3
3
import replace from '@rollup/plugin-replace' ;
4
4
5
- import { makeLicensePlugin , terserPlugin } from '../../rollup.config' ;
5
+ import { makeLicensePlugin , paths , terserPlugin } from '../../rollup.config' ;
6
6
7
7
const licensePlugin = makeLicensePlugin ( '@sentry/tracing & @sentry/browser' ) ;
8
8
9
- const paths = {
10
- '@sentry/utils' : [ '../utils/src' ] ,
11
- '@sentry/core' : [ '../core/src' ] ,
12
- '@sentry/hub' : [ '../hub/src' ] ,
13
- '@sentry/types' : [ '../types/src' ] ,
14
- '@sentry/minimal' : [ '../minimal/src' ] ,
15
- '@sentry/browser' : [ '../browser/src' ] ,
16
- } ;
17
-
18
9
const plugins = [
19
10
typescript ( {
20
11
tsconfig : 'tsconfig.esm.json' ,
Original file line number Diff line number Diff line change @@ -2,19 +2,10 @@ import typescript from 'rollup-plugin-typescript2';
2
2
import resolve from '@rollup/plugin-node-resolve' ;
3
3
import replace from '@rollup/plugin-replace' ;
4
4
5
- import { makeLicensePlugin , terserPlugin } from '../../rollup.config' ;
5
+ import { makeLicensePlugin , paths , terserPlugin } from '../../rollup.config' ;
6
6
7
7
const licensePlugin = makeLicensePlugin ( ) ;
8
8
9
- const paths = {
10
- '@sentry/utils' : [ '../utils/src' ] ,
11
- '@sentry/core' : [ '../core/src' ] ,
12
- '@sentry/hub' : [ '../hub/src' ] ,
13
- '@sentry/types' : [ '../types/src' ] ,
14
- '@sentry/minimal' : [ '../minimal/src' ] ,
15
- '@sentry/browser' : [ '../browser/src' ] ,
16
- } ;
17
-
18
9
const plugins = [
19
10
typescript ( {
20
11
tsconfig : 'tsconfig.esm.json' ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import typescript from 'rollup-plugin-typescript2';
2
2
import resolve from '@rollup/plugin-node-resolve' ;
3
3
import replace from '@rollup/plugin-replace' ;
4
4
5
- import { terserPlugin } from '../../rollup.config' ;
5
+ import { paths , terserPlugin } from '../../rollup.config' ;
6
6
7
7
const plugins = [
8
8
typescript ( {
@@ -11,13 +11,7 @@ const plugins = [
11
11
compilerOptions : {
12
12
declaration : false ,
13
13
declarationMap : false ,
14
- paths : {
15
- '@sentry/utils' : [ '../utils/src' ] ,
16
- '@sentry/core' : [ '../core/src' ] ,
17
- '@sentry/hub' : [ '../hub/src' ] ,
18
- '@sentry/types' : [ '../types/src' ] ,
19
- '@sentry/minimal' : [ '../minimal/src' ] ,
20
- } ,
14
+ paths,
21
15
baseUrl : '.' ,
22
16
} ,
23
17
} ,
Original file line number Diff line number Diff line change 5
5
import license from 'rollup-plugin-license' ;
6
6
import { terser } from 'rollup-plugin-terser' ;
7
7
8
+ export const paths = {
9
+ '@sentry/browser' : [ '../browser/src' ] ,
10
+ '@sentry/core' : [ '../core/src' ] ,
11
+ '@sentry/hub' : [ '../hub/src' ] ,
12
+ '@sentry/minimal' : [ '../minimal/src' ] ,
13
+ '@sentry/types' : [ '../types/src' ] ,
14
+ '@sentry/utils' : [ '../utils/src' ] ,
15
+ } ;
8
16
9
17
/**
10
18
* Create a plugin to add an identification banner to the top of stand-alone bundles.
You can’t perform that action at this time.
0 commit comments