Closed
Description
Environment
Provide version numbers for the following components (information can be retrieved by running tns info
in your project folder or by inspecting the package.json
of the project):
- CLI: 5.2.4
- Cross-platform modules: Not applicable
- Android Runtime: Not applicable
- iOS Runtime: Not applicable
- Plugin(s): Not applicable
Describe the bug
In my application I have some browser specific code, that is not loaded in the NativeScript app itself, but during tns run <platform>
I receive warnings that this code has short imports.
To Reproduce
tns create myApp
cd myApp/app
touch file1.js
- Open file1.js and add the following content:
o.cache&&(r+="&cache="+u(o.cache)),t=["<!DOCTYPE html>","<html>","<head>",'<meta charset="UTF-8" />','<script type="text/javascript">'," var UWA = {hosts:"+n(e.hosts)+"},",' curl = {apiName: "require"}
- Run
tns run android
You'll see warning from CLI for the short import.
Another way to reproduce the behavior is by downloading the UWA_Standalone_Alone.js and place it inside app dir, as described here
Expected behavior
CLI must show warnings only for real short imports.