Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In jest.config.json:
- ```json
- {
- ...
- "moduleNameMapper": {
- "@ts(.*)$": "<rootDir>/resources/ts/$1"
- }
- }
- ```
- In tsconfig.json:
- ```json
- {
- "compilerOptions": {
- ...
- "baseUrl": ".",
- "paths": {
- "@ts/*": ["resources/ts/*"]
- }
- }
- ...
- }
- ```
- in webpack.mix.js:
- ```javascript
- const mix = require('laravel-mix');
- ...
- mix.webpackConfig({
- resolve: {
- alias: {
- "@ts": path.resolve(
- __dirname,
- "resources/ts"
- )
- }
- }
- });
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement