Skip to content

Show warning for deprecated short imports/require used in application #4375

Closed
@rosen-vladimirov

Description

@rosen-vladimirov

Is your feature request related to a problem? Please describe.
In NativeScript 5.2.0 short imports like import * as application from "application"; are deprecated, i.e. support for them will be removed in a future version. It would be great in case CLI can analyze the application and report for such imports used in the app.
NOTE: Same is applicable for const application = require("application");

Describe the solution you'd like
During project build/run, CLI should analyze application's code and inform for used short imports. Same is applicable when running tns doctor inside project directory.

Describe alternatives you've considered
TSLint rule can do the same for TypeScript projects, but it will not work for JS ones. Also the IDE should have integration with TSLint to see the warning.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions