Skip to content

Handle import.meta #505

@vincentvictoria

Description

@vincentvictoria

import.meta emits an error.
dynamic import( './module.js' ) also emits an error.

I tried to avoid the issue with // javascript-obfuscator:disable, but that didn't help 🐙

Current Behavior

throws Error: Unexpected token import

Minimal working example that will help to reproduce issue

  1. import.meta

    console.log( import.meta );

  2. dynamic import

    import( './module.js' );

  3. dynamic import with an attempt to avoid obfuscating

    // javascript-obfuscator:disable
    import( './module.js' );
    // javascript-obfuscator:enable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions