Fix module resolution.

This commit is contained in:
Alexis Lahouze 2017-07-11 08:49:39 +02:00
parent 2ae971a7ad
commit 3ff0015690
2 changed files with 9 additions and 5 deletions

View File

@ -30,7 +30,7 @@ var ngResource = require('angular-resource'),
var balanceChartModule = require('./balance-chart.component'), var balanceChartModule = require('./balance-chart.component'),
categoryChartModule = require('./category-chart.component'); categoryChartModule = require('./category-chart.component');
import accountModule from '../accounts/index'; import accountModule from '@accountant/accounts';
var OperationFactory = require('./operation.factory'); var OperationFactory = require('./operation.factory');
var OperationConfig = require('./operation.config'); var OperationConfig = require('./operation.config');

View File

@ -10,10 +10,14 @@ module.exports = {
resolve: { resolve: {
extensions: ['.js', '.jsx', '.ts', '.tsx', '.html'], extensions: ['.js', '.jsx', '.ts', '.tsx', '.html'],
alias: { alias: {
'@accountant/accounts': './accounts/index.ts', '@accountant/accounts': path.resolve(
'@accountant/operations': './operations/index.ts', __dirname, 'src/accounts/index.ts'),
'@accountant/login': './login/index.ts', '@accountant/operations': path.resolve(
'@accountant/scheduler': './scheduler/index.ts' __dirname, 'src/operations/index.ts'),
'@accountant/login': path.resolve(
__dirname, 'src/login/index.ts'),
'@accountant/scheduler': path.resolve(
__dirname, 'src/scheduler/index.ts')
} }
}, },
module: { module: {