diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index 0a7d847..ac505a5 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/src/global.d.ts b/src/global.d.ts index 27a02e8..ae02f59 100644 --- a/src/global.d.ts +++ b/src/global.d.ts @@ -1,5 +1 @@ /// - -declare module '*.css' { - export default Record; -} diff --git a/tsconfig.json b/tsconfig.json index 5ee0f5f..166c178 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,7 @@ "./src", "./configs", "./jest.config.ts", + "./webpack.config.ts", "./__spec__", ], "compilerOptions": { @@ -51,5 +52,10 @@ "DOM" ], "skipLibCheck": true + }, + "ts-node": { + "compilerOptions": { + "module": "CommonJS" + } } } diff --git a/webpack.config.js b/webpack.config.js deleted file mode 100644 index 412ee4b..0000000 --- a/webpack.config.js +++ /dev/null @@ -1,13 +0,0 @@ -const path = require('node:path'); - -const { createConfig } = require('ksv741-react-scripts'); - -module.exports = (env) => createConfig({ - analyze: env?.analyze, - mode: env?.mode, - plugins: { - htmlWebpackPlugin: { - favicon: path.resolve(__dirname, 'public', 'favicon.png'), - }, - }, -}); diff --git a/webpack.config.ts b/webpack.config.ts new file mode 100644 index 0000000..8e806f4 --- /dev/null +++ b/webpack.config.ts @@ -0,0 +1,14 @@ +import path from 'path'; +import {createConfig, WebpackEnv} from 'ksv741-react-scripts' + +const config = (env: WebpackEnv) => createConfig({ + analyze: Boolean(env?.analyze), + mode: env?.mode || 'development', + plugins: { + htmlWebpackPlugin: { + favicon: path.resolve(__dirname, 'public', 'favicon.png'), + }, + }, +}); + +export default config;