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

Parser cannot extend acornDynamicImport, cause it's not a function #222

Open
devtorich opened this issue Sep 26, 2019 · 1 comment
Open
Labels

Comments

@devtorich
Copy link

I run this source code and the result is incorrect

const parser = Parser.extend(classFields, acornDynamicImport);

result:

...\node_modules\acorn\dist\acorn.js:571
Parser.extend = function extend () {
      var plugins = [], len = arguments.length;
      while ( len-- ) plugins[ len ] = arguments[ len ];

    var cls = this;
    for (var i = 0; i < plugins.length; i++) { cls = plugins[i](cls); }
                                                               ^

TypeError: plugins[i] is not a function
@mourner
Copy link
Collaborator

mourner commented Sep 27, 2019

Can you say more? Is this purely an Acorn issue, or related to Buble in any way?

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

No branches or pull requests

2 participants