mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-06-27 20:20:58 +08:00
fix: katex render (#208)
This commit is contained in:
@@ -19,6 +19,20 @@ async function deleteOldDir() {
|
||||
}
|
||||
|
||||
async function runWebpack(isWithoutKatex, isWithoutTiktoken, callback) {
|
||||
const shared = [
|
||||
'preact',
|
||||
'webextension-polyfill',
|
||||
'@primer/octicons-react',
|
||||
'react-bootstrap-icons',
|
||||
'countries-list',
|
||||
'i18next',
|
||||
'react-i18next',
|
||||
'react-tabs',
|
||||
'./src/utils',
|
||||
'./src/_locales/i18n-react',
|
||||
]
|
||||
if (isWithoutKatex) shared.push('./src/components')
|
||||
|
||||
const compiler = webpack({
|
||||
entry: {
|
||||
'content-script': {
|
||||
@@ -36,19 +50,7 @@ async function runWebpack(isWithoutKatex, isWithoutTiktoken, callback) {
|
||||
import: './src/pages/IndependentPanel/index.jsx',
|
||||
dependOn: 'shared',
|
||||
},
|
||||
shared: [
|
||||
'preact',
|
||||
'webextension-polyfill',
|
||||
'@primer/octicons-react',
|
||||
'react-bootstrap-icons',
|
||||
'countries-list',
|
||||
'i18next',
|
||||
'react-i18next',
|
||||
'react-tabs',
|
||||
'./src/utils',
|
||||
'./src/_locales/i18n-react',
|
||||
'./src/components',
|
||||
],
|
||||
shared: shared,
|
||||
},
|
||||
output: {
|
||||
filename: '[name].js',
|
||||
|
||||
Reference in New Issue
Block a user