Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@linaria/shaker: export * is removed for TS #820

layershifter opened this issue Aug 16, 2021 · 0 comments

@linaria/shaker: export * is removed for TS #820

layershifter opened this issue Aug 16, 2021 · 0 comments


Copy link

@layershifter layershifter commented Aug 16, 2021


  • Linaria version: @linaria/shaker@3.0.0-beta.11
  • Bundler (+ version): N/A
  • Node.js version: 12.14
  • OS: Windows 10


Similar to #808. I am considering this an edge case, not sure that it should be fixed.

  • contains import of memoizeFunction
  • evaluation is turned on for node_modules
❯ node using-babel.js
fixtureName failing
exports['foo'] function
❯ node using-shaker.js 
TypeError: _utilities.memoizeFunction is not a function
    at eval (/home/projects/node-77dfmk/src/failing/index.js:9:39)
    at eval (/home/projects/node-77dfmk/src/failing/index.js:13:3)

This happens because shaker does not how to handle code compiled by TS:

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");

tslib_1.__exportStar(require("./memoize"), exports);

Reproducible Demo

@Anber Anber self-assigned this Sep 11, 2021
@Anber Anber closed this in ec8ee68 Sep 12, 2021
ling1726 added a commit to ling1726/fluentui that referenced this issue Oct 5, 2021
layershifter pushed a commit to microsoft/fluentui that referenced this issue Oct 5, 2021
* fix(babel-make-styles): Bump Linaria versions

Bump linaria versions to consume fix callstack/linaria#820

* Change files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants