From 31585b1166da90870c6e3ac986d18c140f640de4 Mon Sep 17 00:00:00 2001 From: Cinob Date: Wed, 12 Oct 2022 18:13:49 +0800 Subject: [PATCH] fix: Cannot read properties of null (reading 'plugin') --- dist/flip.module.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dist/flip.module.js b/dist/flip.module.js index 8cc8100..e25f839 100644 --- a/dist/flip.module.js +++ b/dist/flip.module.js @@ -1,4 +1,5 @@ import Tick from '../tick/tick.core.module'; import Flip from './tick.view.flip.module'; -Tick.plugin.add(Flip); -export default Tick; \ No newline at end of file + +if (Tick && Tick.plugin) Tick.plugin.add(Flip); +export default Tick;