You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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%
/*
* 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?
The text was updated successfully, but these errors were encountered:
Hi @superslau, and thanks for the report! These types of issues can usually be solved by first adding a new test to lib/__tests__/findExports-test.js then modifying code in lib/findExports.js until the test passes. Here's a commit that can be used as inspiration: 828b46a
Run npm run jest --watch findExports to get quick feedback on code changes.
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:
The main entry point for
@blueprintjs/core
islib/cjs/index.js
which looks like: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
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?
The text was updated successfully, but these errors were encountered: