Can I do a production build without minifying?

Right now, minification appears to be breaking TypeORM, a third party library that I use.

Expected Behavior

Turning on production mode shouldn’t cause additional errors from a third party library.

Current Behavior

Minification is causing an error:

console.error: "query failed: ", "CREATE TABLE "temporary_t" () "

It seems to be related to this line in TypeORM:
https://github.com/typeorm/typeorm/blob/6cd665fef156611b51030172b18cfd32dced1d26/src/driver/sqlite-abstract/AbstractSqliteQueryRunner.ts#L1000

Minification changes a certain table name, which then causes this error.

Steps to Reproduce

Don’t have reproduction steps at this time.

Potential Solution

Minification certainly isn’t essential for a production build, and it would be nice to have the option to turn that off.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.