forked from edrlab/thorium-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsup.config.ts
More file actions
57 lines (55 loc) · 1.26 KB
/
Copy pathtsup.config.ts
File metadata and controls
57 lines (55 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import svgrPlugin from "esbuild-plugin-svgr";
import { defineConfig } from "tsup";
export default defineConfig({
name: "Thorium Web",
tsconfig: "./tsconfig.bundle.json",
format: ["esm"],
entry: [
"src/core/Components/index.ts",
"src/core/Helpers/index.ts",
"src/core/Hooks/index.ts",
"src/components/Misc/index.ts",
"src/components/Audio/index.ts",
"src/components/Epub/index.ts",
"src/components/WebPub/index.ts",
"src/components/Reader/index.ts",
"src/i18n/index.ts",
"src/lib/index.ts",
"src/preferences/index.ts",
"src/next-lib/index.ts"
],
loader: {
".css": "local-css"
},
esbuildPlugins: [svgrPlugin()],
sourcemap: true,
clean: true,
dts: true,
treeshake: true,
splitting: true,
bundle: true,
noExternal: [
"classNames",
"debounce",
"colorthief"
],
external: [
"react",
"react-dom",
"react-redux",
"@reduxjs/toolkit",
"react-aria",
"react-aria-components",
"react-stately",
"react-resizable-panels",
"react-modal-sheet",
"i18next",
"i18next-browser-languagedetector",
"i18next-http-backend",
"motion",
"@readium/css",
"@readium/navigator",
"@readium/navigator-html-injectables",
"@readium/shared"
]
});