Skip to content

Commit

Permalink
fix: 🐛 import paths should not end with file suffix (#711)
Browse files Browse the repository at this point in the history
Co-authored-by: Thees Hengstermann <[email protected]>
  • Loading branch information
Thees Hengstermann and Thees Hengstermann authored Dec 8, 2023
1 parent ab57b37 commit 38635a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/docs/getting-started/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ import { ApplicationConfig, isDevMode } from '@angular/core';
import { provideHttpClient } from '@angular/common/http';
import { provideTransloco } from '@ngneat/transloco';

import { TranslocoHttpLoader } from './transloco-loader.ts';
import { TranslocoHttpLoader } from './transloco-loader';

export const appConfig: ApplicationConfig = {
providers: [
Expand Down
2 changes: 1 addition & 1 deletion libs/transloco-schematics/src/ng-add/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default function (options: SchemaOptions): Rule {
actions.push(
addRootProvider(options.project, ({ code, external }) => {
external('isDevMode', '@angular/core');
external('TranslocoHttpLoader', './transloco-loader.ts');
external('TranslocoHttpLoader', './transloco-loader');

return code`${external('provideTransloco', '@ngneat/transloco')}({
config: {
Expand Down

0 comments on commit 38635a0

Please sign in to comment.