We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e1c7fa commit 83810eaCopy full SHA for 83810ea
2 files changed
rollup.config.js
@@ -44,6 +44,7 @@ const minifiedPlugins = [
44
svelte({ extensions: ['.svelte'] }),
45
commonjs(),
46
replace({
47
+ exclude: 'src/**',
48
'process.env.NODE_ENV': JSON.stringify('production'),
49
}),
50
filesize(),
src/client/client.js
@@ -314,7 +314,11 @@ class _ClientImpl {
314
}
315
316
mount() {
317
- if (this.debug !== false && this._debugPanel == null) {
+ if (
318
+ process.env.NODE_ENV !== 'production' &&
319
+ this.debug !== false &&
320
+ this._debugPanel == null
321
+ ) {
322
let target = document.body;
323
if (this.debug && this.debug.target) {
324
target = this.debug.target;
0 commit comments