Skip to content

vue.esm.js build throws exception in browsers supporting ES modules (Safari preview) #5227

Closed
@stefanjudis

Description

@stefanjudis

Version

2.2.4

Reproduction link

https://github.com/stefanjudis/vue-esm-issue

Steps to reproduce

Try import Vue from 'vue.esm.js' in Safari Technology Preview.

What is expected?

It is expected that I can import the ES module in a Browser environment that supports ES modules already.

What is actually happening?

The module includes references to process which throws a Reference Error then.


I'm just playing around with the new support of ES modules and try to figure out what this all means for our development workflows and ecosystem. Modules, rel=preload, HTTP/2, it might be, that best practices will shift again.

I ran into this bug, because I wanted to measure a bundle including vue against ES modules making several requests. Maybe I'm not getting the idea of this build, but as I understand it should support the native environment. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions