Skip to content

Commit 19cd677

Browse files
committed
fix: broken group and placeholder pages (Complete commit 91a1d32)
1 parent 2e9637c commit 19cd677

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

‎build/vite.ts‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import path from 'node:path'
22
import { build, defineConfig, mergeConfig } from 'vite'
33
import vue from '@vitejs/plugin-vue'
44
import { IS_DEV, ADDON_PATH, KEEP_NAMES, BUNDLE_VUE, logErr } from './utils.js'
5-
import { IIFE_BANNER_WITH_REINJECT_GUARD, IIFE_FOOTER } from './utils.js'
65
import { log, logOk } from './utils.js'
76

87
if (IS_DEV) {
@@ -114,10 +113,10 @@ async function main() {
114113
const groupInjection = defineConfig({
115114
build: {
116115
rollupOptions: {
117-
input: { 'injections/group': 'src/injections/group.ts' },
116+
input: { 'page.group/group': 'src/page.group/group.ts' },
118117
output: {
119-
banner: IIFE_BANNER_WITH_REINJECT_GUARD,
120-
footer: IIFE_FOOTER,
118+
splitting: false,
119+
outfile: path.join(ADDON_PATH, 'sidebery', 'group.js'),
121120
},
122121
},
123122
},
@@ -128,10 +127,10 @@ async function main() {
128127
const urlInjection = defineConfig({
129128
build: {
130129
rollupOptions: {
131-
input: { 'injections/url': 'src/injections/url.ts' },
130+
input: { 'page.url/url': 'src/page.url/url.ts' },
132131
output: {
133-
banner: IIFE_BANNER_WITH_REINJECT_GUARD,
134-
footer: IIFE_FOOTER,
132+
splitting: false,
133+
outfile: path.join(ADDON_PATH, 'sidebery', 'url.js'),
135134
},
136135
},
137136
},

0 commit comments

Comments
 (0)