Skip to content

Does not work with nativescript #20

@rsun-thoughtworks

Description

@rsun-thoughtworks

I configured as guided by the document and I debugged this plugin, found that it does have commented all matching conditional parts.

However, the final bundle file does not have commented.

source

    // #if process.env.APP_NAME === 'M'
    alert('Hello M');
    // #endif

    // #if process.env.APP_NAME === 'U'
    alert('Hello U');
    // #endif

debug output:

    // #if process.env.APP_NAME === 'M'
//    alert('Hello M');
    // #endif

    // #if process.env.APP_NAME === 'U'
//    alert('Hello U');
    // #endif

bundle js:

    AComponent.prototype.onTap = function () {
        var _this = this;
        // #if process.env.APP_NAME === 'M'
        alert('Hello M');
        // #endif
        // #if process.env.APP_NAME === 'U'
        alert('Hello U');
        // #endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions