import via preact/hooks
Some checks failed
myip.wtf / build (push) Has been cancelled
myip.wtf / tests (push) Has been cancelled

This commit is contained in:
0x1eef 2024-09-12 19:47:50 -03:00
parent db0be8bca0
commit 1028613cad
4 changed files with 5 additions and 5 deletions

0
bin/mkicons Executable file → Normal file
View file

View file

@ -48,7 +48,7 @@ module.exports = {
}), }),
new CleanWebpackPlugin(), new CleanWebpackPlugin(),
new webpack.ProvidePlugin({ new webpack.ProvidePlugin({
React: ['preact/compat'] React: ["preact/compat"]
}), }),
], ],
} }

View file

@ -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"
} }
} }

View file

@ -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;