Skip to content

Commit

Permalink
Revert formatting and debug nonsense
Browse files Browse the repository at this point in the history
  • Loading branch information
wgoehrig committed Jan 24, 2025
1 parent 83b4d06 commit 4c214ba
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
18 changes: 9 additions & 9 deletions test-apps/display-performance-test-app/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Object.keys(packageJson.dependencies).forEach((pkgName) => {
.replace("\\lib\\cjs\\", "\\src\\")
.replace("/lib/cjs/", "/src/")
.replace(".js", ".ts");
} catch { }
} catch {}
}
});

Expand Down Expand Up @@ -91,14 +91,14 @@ export default defineConfig(() => {
plugins: [
...(process.env.OUTPUT_STATS !== undefined
? [
rollupVisualizer({
open: true,
filename: "stats.html",
template: "treemap",
sourcemap: true,
}),
webpackStats(), // needs to be the last plugin
]
rollupVisualizer({
open: true,
filename: "stats.html",
template: "treemap",
sourcemap: true,
}),
webpackStats(), // needs to be the last plugin
]
: []),
externalGlobals({
// allow global `window` object to access electron as external global
Expand Down
20 changes: 10 additions & 10 deletions test-apps/display-test-app/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Object.keys(packageJson.dependencies).forEach((pkgName) => {
.replace("\\lib\\cjs\\", "\\src\\")
.replace("/lib/cjs/", "/src/")
.replace(".js", ".ts");
} catch { }
} catch {}
}
});

Expand Down Expand Up @@ -74,7 +74,7 @@ export default defineConfig(() => {
outDir: "./lib",
sourcemap: !process.env.VITE_CI, // append to the resulting output file if not running in CI.
minify: false, // disable compaction of source code
target: console.log(browserslistToEsbuild()) || browserslistToEsbuild(), // for browserslist in package.json
target: browserslistToEsbuild(), // for browserslist in package.json
commonjsOptions: {
// plugin to convert CommonJS modules to ESM, so they can be included in bundle
include: [
Expand All @@ -90,14 +90,14 @@ export default defineConfig(() => {
plugins: [
...(process.env.OUTPUT_STATS !== undefined
? [
rollupVisualizer({
open: true,
filename: "stats.html",
template: "treemap",
sourcemap: true,
}),
webpackStats(), // needs to be the last plugin
]
rollupVisualizer({
open: true,
filename: "stats.html",
template: "treemap",
sourcemap: true,
}),
webpackStats(), // needs to be the last plugin
]
: []),
externalGlobals({
// allow global `window` object to access electron as external global
Expand Down

0 comments on commit 4c214ba

Please sign in to comment.