2

Closed

Generated require() from module() should use same quote types

description

I have the following TypeScript code:

import path = module('path');
import stringx = module('stringx');

Where path is the NodeJS module, and stringx.ts is a file in the same directory.

The following Javascript is generated:

var path = require('path')
var stringx = require("./stringx")

Although it is valid and works, the second module() statement uses double quotes instead of the single quotes I had originally. JSHint doesn't like this when using the quotmark: true option.
Closed Feb 5 at 12:00 AM by paulb

comments

cyrusn wrote Feb 4 at 11:40 PM

Fixed in changeset 23f895753effc062a687b81d8c4efe7d7f803947

cyrusn wrote Feb 4 at 11:40 PM

Fixed in changeset b316d8b010c6377a6f19e18450ccb093378bec04