Skip to content

Commit

Permalink
ci: try to fix build in Vercel with Nodejs v18
Browse files Browse the repository at this point in the history
  • Loading branch information
zthxxx committed Dec 11, 2023
1 parent 2956fcc commit ed3296f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/umi3/.umirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default defineConfig({
extraBabelPlugins: [
[
// https://github.com/emotion-js/emotion/tree/main/packages/babel-plugin#options
'@emotion/babel-plugin',
require.resolve('@emotion/babel-plugin'),
{
sourceMap: true,
autoLabel: 'always',
Expand Down
5 changes: 3 additions & 2 deletions examples/umi3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
},
"scripts": {
"clean": "rimraf dist src/.umi src/.umi-production",
"dev": "npm run clean && COMPRESS=none HOST=0.0.0.0 MFSU_AD=none umi dev",
"umi": "NODE_OPTIONS=\"${NODE_OPTIONS} --openssl-legacy-provider\" umi",
"dev": "npm run clean && COMPRESS=none HOST=0.0.0.0 MFSU_AD=none npm run umi dev",
"build": "NODE_ENV=production npm-run-all clean build:*",
"build:umi": "COMPRESS=none SPEED_MEASURE=CONSOLE umi build"
"build:umi": "COMPRESS=none SPEED_MEASURE=CONSOLE npm run umi build"
},
"dependencies": {
"@emotion/css": "11.1.3",
Expand Down
5 changes: 3 additions & 2 deletions packages/inspector/src/Inspector/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ export interface CodeDataAttribute {
* InspectAgent design different renderer binding (like React DOM, React Native, React Three.js etc.)
*
* An Agent need implement these functions:
* - setup event listener to collect user interaction operation (like Pointer Down/Up/Move / Click etc.)
* - setup event listener to collect user interaction operation (like Pointer Down/Up/Over / Click etc.)
* and its target element (like DOM, Three.js etc.)
* - collect inspection info from its element (like name, code source position etc.)
* - show/hide indicator UI on element (like highlight, show name or code position etc.)
* - show/hide indicator UI on element (like highlight element, show tooltip for name or code position etc.)
*/
export interface InspectAgent<Element> {
/**
Expand Down

0 comments on commit ed3296f

Please sign in to comment.