Fixed webpack common.js for imports project
This commit is contained in:
parent
72f5b59719
commit
3fc1faff5f
@ -52,10 +52,16 @@ module.exports = {
|
|||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
"@": `${paths.src}/modules`,
|
"@": `${paths.src}/modules`,
|
||||||
// "@components": `${paths.src}/components`,
|
assets: `${paths.src}/assets`,
|
||||||
// "@assets": `${paths.src}/assets`,
|
"@components": `${paths.src}/components`,
|
||||||
|
"@pages": `${paths.src}/pages`,
|
||||||
|
"@redux": `${paths.src}/redux`,
|
||||||
|
"@store": `${paths.src}/store`,
|
||||||
|
"@api": `${paths.src}/api`,
|
||||||
|
"@hooks": `${paths.src}/hooks`,
|
||||||
},
|
},
|
||||||
extensions: [".mjs", ".js", ".jsx", ".ts", ".tsx", ".json"],
|
// extensions: [".mjs", ".js", ".jsx", ".ts", ".tsx", ".json"],
|
||||||
|
extensions: [".jsx", "..."],
|
||||||
},
|
},
|
||||||
experiments: {
|
experiments: {
|
||||||
topLevelAwait: true,
|
topLevelAwait: true,
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"baseUrl": "src"
|
"baseUrl": "./src",
|
||||||
|
"paths": {
|
||||||
|
"assets/*": ["./assets/*"],
|
||||||
|
"@components/*": ["./components/*"],
|
||||||
|
"@pages/*": ["./pages/*"],
|
||||||
|
"@redux/*": ["./redux/*"],
|
||||||
|
"@store/*": ["./store/*"],
|
||||||
|
"@api/*": ["./api/*"],
|
||||||
|
"@hooks/*": ["./api/*"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user