Skip to content

Cannot find exports from Typescript library BlueprintJS  #520

@superslau

Description

@superslau

I'm using a UI library called BlueprintJS https://github.com/palantir/blueprint, and I'm having trouble using import-js with blueprint.

package.json:

  "dependencies": {
    "@blueprintjs/core": "^3.5.1",
    "@blueprintjs/select": "^3.2.0",
    ...
  }

The main entry point for @blueprintjs/core is lib/cjs/index.js which looks like:

"use strict";
/*
 * Copyright 2015 Palantir Technologies, Inc. All rights reserved.
 *
 * Licensed under the terms of the LICENSE file distributed with this project.
 */
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
tslib_1.__exportStar(require("./accessibility"), exports);
tslib_1.__exportStar(require("./common"), exports);
tslib_1.__exportStar(require("./components"), exports);
//# sourceMappingURL=index.js.map% 

The only export that gets picked up is __esModule

This is the compiled form of: https://github.com/palantir/blueprint/blob/develop/packages/core/src/index.ts

/*
* Copyright 2015 Palantir Technologies, Inc. All rights reserved.
*
* Licensed under the terms of the LICENSE file distributed with this project.
*/

export * from "./accessibility";
export * from "./common";
export * from "./components";

Having dug around findExports.js I can see the typescript support expects a typescript file, and not compiled typescript files.

How might we be able to add support for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions