File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
dev-packages/rollup-utils/plugins Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ export function makeDebugBuildStatementReplacePlugin() {
126126}
127127
128128export function makeProductionReplacePlugin ( ) {
129- const pattern = / \/ \* d e v e l o p m e n t - o n l y \* \/ [ \s \S ] * ?\/ \* e n d - d e v e l o p m e n t - o n l y \* \/ / g;
129+ const pattern = / \/ \* r o l l u p - i n c l u d e - d e v e l o p m e n t - o n l y \* \/ [ \s \S ] * ?\/ \* e n d - r o l l u p - i n c l u d e - d e v e l o p m e n t - o n l y \* \/ / g;
130130
131131 function stripDevBlocks ( code ) {
132132 if ( ! code ) return null ;
Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ export function getDefaultIntegrations(_options: Options): Integration[] {
3838 dedupeIntegration ( ) ,
3939 httpContextIntegration ( ) ,
4040 browserSessionIntegration ( ) ,
41- /* development-only */
41+ /* rollup-include- development-only */
4242 spotlightBrowserIntegration ( ) ,
43- /* end-development-only */
43+ /* end-rollup-include- development-only */
4444 ] ;
4545}
4646
@@ -101,7 +101,14 @@ export function init(options: BrowserOptions = {}): Client | undefined {
101101 integrations : getIntegrationsToSetup ( {
102102 integrations : options . integrations ,
103103 defaultIntegrations :
104- options . defaultIntegrations == null ? getDefaultIntegrations ( options ) : options . defaultIntegrations ,
104+ options . defaultIntegrations == null
105+ ? getDefaultIntegrations ( options )
106+ : [
107+ ...( options . defaultIntegrations || [ ] ) ,
108+ /* rollup-include-development-only */
109+ spotlightBrowserIntegration ( ) ,
110+ /* end-rollup-include-development-only */
111+ ] ,
105112 } ) ,
106113 transport : options . transport || makeFetchTransport ,
107114 } ;
You can’t perform that action at this time.
0 commit comments