Webpack: absolute file paths for imports
Opened this issue · 1 comments
TCL735 commented
Updating webpack's config to use absolute paths in our imports seems easy, but it doesn't appear to work.
Currently, we already have this in webpack.common.config.js
:
module.exports = {
// ...
resolve: {
alias: {
src: path.resolve(__dirname, 'src'),
},
However, attempting to use src/utils/useCanvas
in an import statement will cause a build error, for example. There must be some other configuration or property that is not set correctly.
kristinarobinson commented
Consistency issue, look at the webpack config.