Skip to content

Commit

Permalink
chore: add sourcemap for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed May 3, 2024
1 parent f96be26 commit 2ea7ec3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vite.main.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2ea7ec3

Please sign in to comment.