Skip to content

Commit

Permalink
Merge pull request #35 from pooooriya/bugfix/#34_Spinner_Not_Working
Browse files Browse the repository at this point in the history
chore: improve tsup config
  • Loading branch information
tomcru authored Nov 17, 2024
2 parents af294b2 + bea8f2f commit 33f4c4a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/HolyProgress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export class HolyProgress {
this.removeBarFromDOM();
next();
}, this.settings.speed);

this.removeSpinnerFromDOM();
}, this.settings.speed);
} else {
Expand Down
24 changes: 17 additions & 7 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
import { Options } from 'tsup';
export const tsup: Options = {
target: 'es6',
import { defineConfig } from "tsup";
import { peerDependencies } from "./package.json";

const externalDependencies = peerDependencies
? Object.keys(peerDependencies)
: [];

export default defineConfig({
entry: ["src/index.tsx"],
format: ["cjs", "esm"],
target: ["es6"],
sourcemap: false,
clean: true,
dts: true,
entry: ['src/index.tsx'],
external: externalDependencies,
minify: true,
treeshake: true,
keepNames: true,
sourcemap: true,
format: ['cjs', 'esm'],
};
jsxFactory: "automatic",
});

0 comments on commit 33f4c4a

Please sign in to comment.