Skip to content

Commit

Permalink
fix: remove export of * spring-easing
Browse files Browse the repository at this point in the history
  • Loading branch information
okikio committed May 29, 2023
1 parent 4b6cc3c commit 9903992
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 3 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9903992

Please sign in to comment.