ionic-example
ionic-example copied to clipboard
More information on limitations when using production builds
Would it be possible to get a bit more information or reasons for each of the limitations when using production builds. It might help us with debugging and potentially creating issues/PRs on typeorm to resolve them.
Sure!
The reason for all three limitation is, that for production builds the source code is mangled with uglifyjs.
- TypeORM can no longer generate table names from class names -> therefore you have to specify it and get a repository by string rather can class
Dategets translated intoObjectso TypeORM thinks, that the type of the column isObjectrather thanDate
Btw guys who develop & support Ionic are very friendly if there is some specific serious problem you can ask them for some integration maybe, i think they will help.
I don't think that these are Ionic specific problem. It's more a problem of webpack and the underlying build scripts that are partly from angular.
Does running a non-prod build for an Ionic app make any difference? That is, without the --prod flag.
A question: if i use TypeORM with the active record pattern, how can i explicitly specify the table name (as suggested for repository pattern here)?
Thanks!