]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
fix: keep no side effect comment when minifying
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 21 Oct 2024 06:32:59 +0000 (15:32 +0900)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 21 Oct 2024 06:32:59 +0000 (15:32 +0900)
packages/pinia/src/store.ts

index 16ae7aa4a17cbfb092b28f7b68d2bb8fe657314f..76c1bc77b14168654bd950a0ec1ed8d47cad0fe0 100644 (file)
@@ -872,8 +872,8 @@ export function defineStore<Id extends string, SS>(
   _ExtractGettersFromSetupStore<SS>,
   _ExtractActionsFromSetupStore<SS>
 >
-// improves tree shaking
-/*#__NO_SIDE_EFFECTS__*/
+// allows unused stores to be tree shaken
+/*! #__NO_SIDE_EFFECTS__ */
 export function defineStore(
   // TODO: add proper types from above
   idOrOptions: any,