Skip to content

Commit d2da1e9

Browse files
committed
fix require res file
1 parent 59cbcab commit d2da1e9

File tree

10 files changed

+10
-12
lines changed

10 files changed

+10
-12
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "yz-yuki-plugin",
3-
"version": "1.0.2-rc.1",
3+
"version": "1.0.2-rc.2",
44
"description": "优纪插件,yunzaijs 关于 微博推送、B站推送 等功能的拓展插件",
55
"author": "snowtafir",
66
"type": "module",

src/components/dynamic/Account.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// up账户组件
33
import React from 'react';
44
import LogoText from './LogoText.tsx';
5-
import { createRequire } from 'module';
5+
import { createRequire } from 'react-puppeteer';
66
const require = createRequire(import.meta.url)
77

88

src/components/dynamic/Content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// DynamicContent.tsx
22
import React from 'react';
3-
import { createRequire } from 'module';
3+
import { createRequire } from 'react-puppeteer';
44
const require = createRequire(import.meta.url)
55

66
type ContentProps = {

src/components/dynamic/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import React from 'react';
33
import { BOT_NAME, ConfigController } from 'yunzai';
44
import Config from '../../utils/config';
5-
import { createRequire } from 'module';
5+
import { createRequire } from 'react-puppeteer';
66

77
const botVersion = ConfigController.package?.version
88

src/components/dynamic/ForwardContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import React from 'react';
44
import Account from './Account.tsx';
55
import Content from './Content.tsx';
6-
import { createRequire } from 'module'
6+
import { createRequire } from 'react-puppeteer';
77
const require = createRequire(import.meta.url)
88

99
type ForwardContentProps = {

src/components/dynamic/LogoText.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// LogoText
22
// Logo 文本组件
33
import React from 'react';
4-
import { createRequire } from 'module'
4+
import { createRequire } from 'react-puppeteer';
55
const require = createRequire(import.meta.url)
66

77
type LogoTextProps = {

src/components/dynamic/MainPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Account from './Account.tsx';
44
import Content from './Content.tsx';
55
import ForwardContent from './ForwardContent';
66
import Footer from './Footer';
7-
import { createRequire } from 'module';
7+
import { createRequire } from 'react-puppeteer';
88

99
const require = createRequire(import.meta.url)
1010

src/components/help/Help.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
import React from 'react';
33
import { BOT_NAME, ConfigController } from 'yunzai';
44
import Config from '../../utils/config';
5-
6-
import { createRequire } from 'module';
5+
import { createRequire } from 'react-puppeteer';
76

87
const botVersion = ConfigController.package?.version
98

src/components/loginQrcode/Page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// QrcodeLoginPage.tsx
22
import React from 'react';
3-
import { createRequire } from 'module';
4-
3+
import { createRequire } from 'react-puppeteer';
54
const require = createRequire(import.meta.url);
65

76
export type LoginProps = {

src/components/version/Version.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { BOT_NAME, ConfigController } from 'yunzai';
33
import Config from '../../utils/config';
4-
import { createRequire } from 'module';
4+
import { createRequire } from 'react-puppeteer';
55

66
const botVersion = ConfigController.package?.version
77

0 commit comments

Comments
 (0)