diff --git a/src/index.js b/src/index.js index 439a392f..6bf5ee65 100644 --- a/src/index.js +++ b/src/index.js @@ -387,7 +387,12 @@ dayjs.prototype = proto; }) dayjs.extend = (plugin, option) => { + if (plugin.installed) { + return dayjs + } + plugin(option, Dayjs, dayjs) + plugin.installed = true return dayjs }