From c27bcd23d0306a490194f5e76d8f6dc48e523957 Mon Sep 17 00:00:00 2001 From: Yassine Bridi Date: Fri, 29 Jan 2021 15:01:46 +0100 Subject: [PATCH] style: change from named exports to default BREAKING CHANGE: . --- src/index.ts | 4 +++- src/plugin/index.ts | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index 954b313..2bf7676 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1 +1,3 @@ -export { default as directionPlugin } from './plugin/index'; +import { directionPlugin } from './plugin'; + +export default directionPlugin; diff --git a/src/plugin/index.ts b/src/plugin/index.ts index 3754b22..4b14e4a 100644 --- a/src/plugin/index.ts +++ b/src/plugin/index.ts @@ -1,4 +1,3 @@ -import plugin from 'tailwindcss/plugin'; import borderRadiusUtility from './utilities/border-radius.utility'; import borderWidthUtility from './utilities/border-width.utility'; import clearUtility from './utilities/clear.utility'; @@ -10,7 +9,7 @@ import spaceUtility from './utilities/space.utility'; import textAlignUtility from './utilities/text-align.utility'; import transformOriginUtility from './utilities/transform-origin.utility'; -export default plugin(({ addUtilities, theme, variants, e }) => { +export const directionPlugin = ({ addUtilities, theme, variants, e }) => { addUtilities(paddingUtility(theme, e), variants('padding')); addUtilities(marginUtility(theme, e), variants('margin')); addUtilities(borderRadiusUtility(theme, e), variants('borderRadius')); @@ -21,4 +20,4 @@ export default plugin(({ addUtilities, theme, variants, e }) => { addUtilities(floatUtility(), variants('float')); addUtilities(textAlignUtility(), variants('textAlign')); addUtilities(transformOriginUtility(), variants('transformOrigin')); -}); +};