mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
feat: migrate from raw HTML to JSX (TSX / SolidJS) (#3583)
Co-authored-by: Su-Yong <simssy2205@gmail.com>
This commit is contained in:
@ -20,13 +20,18 @@ export const pluginVirtualModuleGenerator = (
|
||||
) => {
|
||||
const srcPath = resolve(__dirname, '..', 'src');
|
||||
const plugins = globSync([
|
||||
'src/plugins/*/index.{js,ts}',
|
||||
'src/plugins/*.{js,ts}',
|
||||
'src/plugins/*/index.{js,ts,jsx,tsx}',
|
||||
'src/plugins/*.{js,ts,jsx,tsx}',
|
||||
'!src/plugins/utils/**/*',
|
||||
'!src/plugins/utils/*',
|
||||
]).map((path) => {
|
||||
let name = basename(path);
|
||||
if (name === 'index.ts' || name === 'index.js') {
|
||||
if (
|
||||
name === 'index.ts' ||
|
||||
name === 'index.js' ||
|
||||
name === 'index.jsx' ||
|
||||
name === 'index.tsx'
|
||||
) {
|
||||
name = basename(resolve(path, '..'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user