Skip to content

Commit

Permalink
chore(project): remove import aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristiaanScheermeijer committed Jun 10, 2021
1 parent 4acd57d commit 5fdfd3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 25 deletions.
7 changes: 1 addition & 6 deletions snowpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ module.exports = {
public: { url: '/', static: true },
src: { url: '/dist' },
},
alias: {
'@components': './src/components',
'@container': './src/container',
'@types': './src/types',
'@app': './src',
},
alias: {},
plugins: [
'@snowpack/plugin-postcss',
'@snowpack/plugin-react-refresh',
Expand Down
21 changes: 2 additions & 19 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,7 @@
"jsx": "preserve",
"baseUrl": "./",
/* paths - import rewriting/resolving */
"paths": {
// If you configured any Snowpack aliases, add them here.
// Add this line to get types for streaming imports (packageOptions.source="remote"):
// "*": [".snowpack/types/*"]
// More info: https://www.snowpack.dev/guides/streaming-imports
"@components/*": [
"src/components/*"
],
"@container/*": [
"src/container/*"
],
"@types/*": [
"src/types/*"
],
"@styles/*": [
"src/styles/*"
]
},
"paths": {},
/* noEmit - Snowpack builds (emits) files, not tsc. */
"noEmit": true,
/* Additional Options */
Expand All @@ -44,4 +27,4 @@
// Fallthrough must be documented
"noFallthroughCasesInSwitch": true
}
}
}

0 comments on commit 5fdfd3e

Please sign in to comment.