https://github.com/revolist/webpack--ts-path
Loads modules by path in tsconfig.json and adds to webpack alias
https://github.com/revolist/webpack--ts-path
Last synced: 8 months ago
JSON representation
Loads modules by path in tsconfig.json and adds to webpack alias
- Host: GitHub
- URL: https://github.com/revolist/webpack--ts-path
- Owner: revolist
- License: mit
- Created: 2022-04-08T12:21:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-08T12:24:16.000Z (over 3 years ago)
- Last Synced: 2024-12-29T19:10:00.976Z (9 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webpack--ts-path
Loads modules by path in tsconfig.json and adds to webpack alias```webpack.config.js```
```
const path = require('path');
const { makeModuleNameMapper } = require('./module.wrapper');module.exports = {
mode: 'production',
resolve: {
extensions: [ '.tsx', '.ts', '.js' ],
alias: {
...makeModuleNameMapper('..', path),
},
},
};
```