diff --git a/vite.main.config.mjs b/vite.main.config.mjs index b597b21..455503f 100644 --- a/vite.main.config.mjs +++ b/vite.main.config.mjs @@ -12,8 +12,11 @@ export default defineConfig((env) => { const forgeEnv = env; const { forgeConfigSelf } = forgeEnv; const define = getBuildDefine(forgeEnv); + + /** @type {import('vite').UserConfig} */ const config = { build: { + sourcemap: true, lib: { entry: forgeConfigSelf.entry, fileName: () => "[name].js",