Skip to content

Commit 2ab032e

Browse files
committed
feat: standard buid process using unbuild
1 parent 53fa239 commit 2ab032e

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

build.config.ts

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,23 @@ export default defineBuildConfig({
3737
"rollup:options": (ctx, option) => {
3838
option.output?.push(
3939
{
40-
// file: "dist/index.js",
40+
entryFileNames: "quran-meta.js",
4141
name: "quranMeta",
4242
dir: "dist",
4343
format: "umd",
44-
// format: "iife",
45-
exports: "auto",
46-
preferConst: true,
47-
externalLiveBindings: false,
48-
freeze: false
44+
banner: banner,
45+
sourcemap: true
46+
},
47+
{
48+
// input: "./src/index.ts",
49+
entryFileNames: "quran-meta.min.js",
50+
name: "quranMeta",
51+
inlineDynamicImports: true,
52+
dir: "dist",
53+
format: "umd",
54+
banner: banner,
55+
minify: true,
56+
compact: true
4957
}
5058
)
5159
}

0 commit comments

Comments
 (0)