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

'broccoli-babel-transpiler is opting out of caching' warning #13

Closed
cesarizu opened this issue Aug 29, 2016 · 6 comments
Closed

'broccoli-babel-transpiler is opting out of caching' warning #13

cesarizu opened this issue Aug 29, 2016 · 6 comments

Comments

@cesarizu
Copy link

When running an ember-cli app I see the following warning:

WARNING: broccoli-babel-transpiler is opting out of caching due to a plugin that does not provide a caching strategy: `function (babel) {
    var t = babel.types;

    return new babel.Transformer('babel-plugin-feature-flags', {
      CallExpression: function(node, parent, scope, file) {
        var callee = this.get('callee');
        if (callee.referencesImport(options.import.module, options.import.name)) {
          var featureName = getFeatureName(node);
          if (featureName in options.features) {
            var value = options.features[featureName];

            if (typeof value === 'boolean') {
              this.replaceWith(t.literal(value));
            }
          } else {
            file.log.error("An unknown feature '" + featureName + "'' was encountered");
          }
        }
      }
    });
  }`.

I suspect this is making the builds slower, is there something I can do about this?

P.S. With some guidance I could prepare a PR to fix this issue.

@Turbo87
Copy link
Member

Turbo87 commented Aug 29, 2016

this should be resolved by #12 already. try to run npm ls babel-plugin-feature-flags to see if you have an outdated dependency somewhere.

@cesarizu
Copy link
Author

Thank you. I had an outdated dependency that was using this plugin.

@tinyweasel
Copy link

This is happening to me too, and I'm getting 'empty' for the npm command. It also doesn't seem to be happening anyone else on my team, and we should (should) have the same dependencies.

@kanongil
Copy link

kanongil commented Sep 15, 2017

I'm seeing this after updating to ember-cli@2.15.1 from 2.14, and have no idea on how to fix it.

Note: the plugin that is reported for me is: babel-plugin-transform-es2015-block-scoping

@EstesE
Copy link

EstesE commented Sep 15, 2017

I'm seeing this as well after upgrading Ember to 2.15.1

X@X ~/source-git/web-content-uploader $ npm ls babel-plugin-feature-flags
web-content-uploader-electron@0.0.0 /home/machine/source-git/web-content-uploader
└─┬ ember-data@2.15.0
└── babel-plugin-feature-flags@0.3.1

Dropping ember-data fixed it for me. I wasn't using ember-data so no big deal I suppose.

@XaserAcheron
Copy link

Same here --I just upgraded ember and ember-cli to 2.15 without issue, but I'm seeing the same thing after updating ember-data. The app still builds and works just fine, for the record.

Since this is a closed issue, this is probably "open a new one" territory. Should that be done on this repo or the main ember-cli one, though?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants