From 9903992e05b12713315ebd14a2b9ff8561642087 Mon Sep 17 00:00:00 2001 From: Okiki Date: Mon, 29 May 2023 23:48:12 +0000 Subject: [PATCH] fix: remove export of * spring-easing --- src/index.ts | 2 -- vite.config.ts | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 837af47..45e228e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,8 +5,6 @@ import type { FunctionNode } from 'postcss-value-parser' import type { TypeCSSEasingOptions, TypeFrameFunction } from 'spring-easing' import type { PluginCreator } from 'postcss' -export * from 'spring-easing' - export function toSnake(str: string) { return str[0] + str.slice(1).replace(/[A-Z]/g, letter => { return '-' + letter.toLowerCase() diff --git a/vite.config.ts b/vite.config.ts index 475d24e..2c2d7e4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -11,8 +11,10 @@ export default defineConfig({ build: { outDir: "lib", minify: false, + sourcemap: true, rollupOptions: { - external: ["postcss", "postcss-value-parser", "spring-easing"] + external: ["postcss", "postcss-value-parser", "spring-easing"], + output: { exports: "named" }, }, lib: { entry: "src/index.ts",