ionic-example icon indicating copy to clipboard operation
ionic-example copied to clipboard

More information on limitations when using production builds

Open jessehon opened this issue 8 years ago • 5 comments

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.

jessehon avatar Nov 30 '17 02:11 jessehon

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
  • Date gets translated into Object so TypeORM thinks, that the type of the column is Object rather than Date

daniel-lang avatar Nov 30 '17 08:11 daniel-lang

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.

vhb56 avatar Dec 05 '17 12:12 vhb56

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.

daniel-lang avatar Dec 05 '17 13:12 daniel-lang

Does running a non-prod build for an Ionic app make any difference? That is, without the --prod flag.

azimuthdeveloper avatar Jan 04 '18 12:01 azimuthdeveloper

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!

meddario avatar Nov 06 '18 22:11 meddario