-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Description
I am using ember-source 3.18.0, and just noticed that runInDebug is not stripped from production builds.
This is my code:
import Route from '@ember/routing/route';
import { runInDebug } from '@ember/debug';
export default class ApplicationRoute extends Route {
beforeModel() {
runInDebug(() => {
// do something
});
// ...
}
}I noticed on our CI that the build size increased whenever I added something inside of the runInDebug method. I then ran the build locally (ember b --prod) and checked the generated app.js file, and indeed the whole method with all the content was still there.
Note: It is not actually run it production, but the code is still in the bundle.
Gaurav0
Metadata
Metadata
Assignees
Labels
No labels