Skip to content

Fails to parse access to import.meta #664

Open
@ghost

Description

The import.meta is used to get import.meta.url in JS generated by wasm-pack.
Could it to be fixed if gas-webpack-plugin allow to use esprima.parseModule with some config option?

I opened an issue in esprima as it didn't work in the online demo. But looking more I found that doc, then maybe the error is in this plugin.

Activity

fossamagna

fossamagna commented on Feb 3, 2022

@fossamagna
Owner

@jhernandez-at-wiris

Could it to be fixed if gas-webpack-plugin allow to use esprima.parseModule with some config option?

gas-webpack-plugin use gas-entry-generator to parse javascript source codes. And, gas-entry-generator use esprima.parseModule. Which option in parseModule do you think will solve this problem? And, Could you provide code or a repository that reproduces the issue?

fossamagna

fossamagna commented on Jun 20, 2022

@fossamagna
Owner

@jhernandez-at-wiris I published v2.3.0.
This version contains update to gas-entry-generator@2.2.0. So parse is switched to esprima-next from esprima and add support import.meta from this. Would you be willing to try it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @fossamagna

      Issue actions

        Fails to parse access to import.meta · Issue #664 · fossamagna/gas-webpack-plugin