Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function buildClientGlobalsPreamble(options: TurbopackLoaderOptions): string {
`window.__DOMSCRIBE_CONSOLE_PATCHED__=true;` +
`var _ce=console.error;` +
`console.error=function(){` +
`if(typeof arguments[0]==='string'&&arguments[0].indexOf('data-ds')!==-1&&arguments[0].indexOf('React.Fragment')!==-1)return;` +
`if(typeof arguments[0]==='string'){var _s=Array.prototype.join.call(arguments,' ');if(_s.indexOf('data-ds')!==-1&&_s.indexOf('React.Fragment')!==-1)return}` +
`return _ce.apply(console,arguments)` +
`}}`,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export function domscribe(options: VitePluginOptions = {}): Plugin {
`window.__DOMSCRIBE_CONSOLE_PATCHED__=true;` +
`var _ce=console.error;` +
`console.error=function(){` +
`if(typeof arguments[0]==='string'&&arguments[0].indexOf('data-ds')!==-1&&arguments[0].indexOf('React.Fragment')!==-1)return;` +
`if(typeof arguments[0]==='string'){var _s=Array.prototype.join.call(arguments,' ');if(_s.indexOf('data-ds')!==-1&&_s.indexOf('React.Fragment')!==-1)return}` +
`return _ce.apply(console,arguments)` +
`}}`,
injectTo: 'head-prepend',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export class DomscribeWebpackPlugin {
`window.__DOMSCRIBE_CONSOLE_PATCHED__=true;` +
`var _ce=console.error;` +
`console.error=function(){` +
`if(typeof arguments[0]==='string'&&arguments[0].indexOf('data-ds')!==-1&&arguments[0].indexOf('React.Fragment')!==-1)return;` +
`if(typeof arguments[0]==='string'){var _s=Array.prototype.join.call(arguments,' ');if(_s.indexOf('data-ds')!==-1&&_s.indexOf('React.Fragment')!==-1)return}` +
`return _ce.apply(console,arguments)` +
`}}` +
`</script>`,
Expand Down
Loading