diff --git a/pyscriptjs/examples/todo.html b/pyscriptjs/examples/todo.html
index 579869e55b6..692bbc3d226 100644
--- a/pyscriptjs/examples/todo.html
+++ b/pyscriptjs/examples/todo.html
@@ -18,7 +18,7 @@
-
+
diff --git a/pyscriptjs/rollup.config.js b/pyscriptjs/rollup.config.js
index bc419440292..268cda333fa 100644
--- a/pyscriptjs/rollup.config.js
+++ b/pyscriptjs/rollup.config.js
@@ -84,7 +84,7 @@ export default {
file: "examples/build/pyscript.min.js",
format: "iife",
sourcemap: true,
- // plugins: [terser()],
+ plugins: [terser()],
},
],
plugins: [
diff --git a/pyscriptjs/src/components/base.ts b/pyscriptjs/src/components/base.ts
index f22b38c29d0..69453b160cb 100644
--- a/pyscriptjs/src/components/base.ts
+++ b/pyscriptjs/src/components/base.ts
@@ -54,7 +54,7 @@ export class BaseEvalElement extends HTMLElement {
}
checkId() {
- if (!this.id) this.id = this.constructor.name + '-' + guidGenerator();
+ if (!this.id) this.id = 'py-' + guidGenerator();
}
getSourceFromElement(): string {