import via preact/hooks
This commit is contained in:
parent
db0be8bca0
commit
1028613cad
4 changed files with 5 additions and 5 deletions
0
bin/mkicons
Executable file → Normal file
0
bin/mkicons
Executable file → Normal file
|
@ -48,7 +48,7 @@ module.exports = {
|
||||||
}),
|
}),
|
||||||
new CleanWebpackPlugin(),
|
new CleanWebpackPlugin(),
|
||||||
new webpack.ProvidePlugin({
|
new webpack.ProvidePlugin({
|
||||||
React: ['preact/compat']
|
React: ["preact/compat"]
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
"webExt": {
|
"webExt": {
|
||||||
"sourceDir": "build/production"
|
"sourceDir": "build/production"
|
||||||
},
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"preact": "^10.23.2"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@testing-library/jest-dom": "^6.4",
|
"@testing-library/jest-dom": "^6.4",
|
||||||
"@testing-library/react": "^16.0",
|
"@testing-library/react": "^16.0",
|
||||||
|
@ -32,8 +35,5 @@
|
||||||
"build:development": "npx webpack --config etc/webpack.development.js",
|
"build:development": "npx webpack --config etc/webpack.development.js",
|
||||||
"test": "npx jest --config etc/jest.config.js test",
|
"test": "npx jest --config etc/jest.config.js test",
|
||||||
"eslint": "npx eslint --config etc/eslint.config.mjs src/"
|
"eslint": "npx eslint --config etc/eslint.config.mjs src/"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"preact": "^10.23.2"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "preact/hooks";
|
||||||
import { TResponse, Response } from "~/lib/response";
|
import { TResponse, Response } from "~/lib/response";
|
||||||
|
|
||||||
type Maybe<T> = T | null;
|
type Maybe<T> = T | null;
|
||||||
|
|
Loading…
Reference in a new issue