fix: katex render (#208)

This commit is contained in:
josc146
2023-04-13 20:44:40 +08:00
parent 27df1d7d44
commit 7ee6ca9307
+15 -13
View File
@@ -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',