Skip to content

Commit 76ac188

Browse files
authored
chore(build): use Rslib (#1011)
1 parent 7d10ac4 commit 76ac188

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+8431
-17202
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ common/autoinstallers/*/.npmrc
7272
# pnpm store
7373
.pnpm-store
7474

75-
.eden-mono
76-
7775
dist
7876
dist-script
7977
doc_build

apps/android-playground/rsbuild.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export default defineConfig({
4545
},
4646
output: {
4747
target: 'web',
48+
externals: ['sharp'],
4849
sourceMap: true,
4950
},
5051
html: {

apps/android-playground/src/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import { type Socket, io } from 'socket.io-client';
2323
import AdbDevice from './adb-device';
2424
import ScrcpyPlayer, { type ScrcpyRefMethods } from './scrcpy-player';
2525

26-
import '@midscene/visualizer/index.css';
2726
import './adb-device/index.less';
2827

2928
const { Content } = Layout;
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
export default {};
1+
const AsyncLocalStorage = {};
2+
export { AsyncLocalStorage };

apps/chrome-extension/src/extension/popup.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
globalThemeConfig,
1313
useEnvConfig,
1414
} from '@midscene/visualizer';
15-
import '@midscene/visualizer/index.css';
1615
import { ConfigProvider, Dropdown, Typography } from 'antd';
1716
import { useEffect, useState } from 'react';
1817
import { BrowserExtensionPlayground } from '../components/playground';
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
export default {};
1+
const AsyncLocalStorage = {};
2+
export { AsyncLocalStorage };

apps/report/rsbuild.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const copyReportTemplate = () => ({
8484
'magic string shows more than once in the file, cannot process',
8585
);
8686
const replacedContent = fileContent.replace(
87-
`"${magicString}"`,
87+
`'${magicString}'`,
8888
() => finalContent, // there are some $- code in the tpl, so we have to use a function as the second argument
8989
);
9090
fs.writeFileSync(filePath, replacedContent);

apps/report/src/blank_polyfill.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
export default {};
1+
const AsyncLocalStorage = {};
2+
export { AsyncLocalStorage };

apps/report/src/components/open-in-playground.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import {
1717
import { useEffect, useState } from 'react';
1818
import { StandardPlayground } from './playground';
1919

20-
import '@midscene/visualizer/index.css';
21-
2220
declare const __VERSION__: string;
2321

2422
export const serverBase = 'http://localhost:5800';

packages/android-playground/modern.config.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)