@@ -34,12 +34,12 @@ const plugins = [
})
]
-plugins.push(
-terser({
- mangle: {
- reserved
- }
-}))
+// plugins.push(
+// terser({
+// mangle: {
+// reserved
+// }
+// }))
export default [{
input: "./src/worker/compdfkit_worker.js",
@@ -0,0 +1,16 @@
+import { uuid } from 'uuidv4'
+
+class Annotation {
+ id: string;
+ pageNumber: number;
+ constructor({
+ pageNumber,
+ }: {
+ pageNumber: number
+ }) {
+ this.id = uuid()
+ this.pageNumber = pageNumber
+ }
+}
+export default Annotation