Skip to content

using with tsify plugin, only jade in the index.ts file is interpolated #46

@geyang

Description

@geyang

Hi,

Thanks for this great transformer! I have been using it with my angular.js app for a while. Recently, I moved to angular2, and the language switched to typescript.

To compile typescript, I'm using the tsify plugin. It seems jadeify properly interpolates the required jade in the index.ts file correctly, but subsequent dependencies have the template variable below undefined:

declare var template:String = require('./template.jade');

console.log(template);

and it shows the template string is undefined.

To solve this problem, I am thinking about running all of the scripts through jadeify first. Is this possible? the tsify is a plugin.

Thanks

-----update--------

actually, the index.ts file's require('./template.jade') did not work at all either.

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