Skip to content

Add a specific flag to enable / disable the use of 'import.meta.url' #9234

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

Merged
merged 1 commit into from
Aug 21, 2019

Conversation

adevress
Copy link
Contributor

This fixes the problem reported by #9233 and by #8729 while fixing the regression bug causes by #8940

Thank you for submitting a pull request!

If this is your first PR, make sure to add yourself to AUTHORS.

    This fixes the problem reported by emscripten-core#9233 and by emscripten-core#8729 while fixing the
    regression bug causes by emscripten-core#8940
Copy link
Collaborator

@VirtualTim VirtualTim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't really like adding a new flag, but if that's the only way to keep everyone happy then I guess we have to.

@adevress
Copy link
Contributor Author

@VirtualTim It seems that even with your approval I can not merge the change :(

@VirtualTim
Copy link
Collaborator

Yeah I'm too untrustworthy to have write access. You'll probably need @kripken to approve this.

@adevress
Copy link
Contributor Author

ping @kripken

Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @adevress!

I agree with @VirtualTim that adding a flag is not wonderful, but also that this seems like the best option. Hopefully we can remove it in a few years, yeah...

@kripken kripken merged commit 7d250f8 into emscripten-core:incoming Aug 21, 2019
@MarcelKlammer
Copy link
Contributor

USE_ES6_IMPORT_META should default to 0, no?
Anyway, thanks for adding this flag.

@sbc100
Copy link
Collaborator

sbc100 commented Dec 15, 2024

It looks like this reached stage4 almost 5 years ago now: tc39/proposal-import-meta#21.

Can we revisit this now and potentially remove this setting?

sbc100 added a commit to sbc100/emscripten that referenced this pull request Dec 15, 2024
This setting was added (IIUC) as a temporary workaround for the lack or
support for `import.meta` in browser and tooling.

However `import.meta` has been at stage 4 for almost 5 years now:
tc39/proposal-import-meta#21

Webback (released in 2020) also has builtin support for `import.meta`,
so I would hope the use case for disabling this setting no longer
exists.

See emscripten-core#9234 and emscripten-core#8729
@sbc100
Copy link
Collaborator

sbc100 commented Dec 16, 2024

Is anyone still using this setting? I'm hoping to remove it: #23171

sbc100 added a commit to sbc100/emscripten that referenced this pull request Dec 17, 2024
This setting was added (IIUC) as a temporary workaround for the lack or
support for `import.meta` in browser and tooling.

However `import.meta` has been at stage 4 for almost 5 years now:
tc39/proposal-import-meta#21

Webback (released in 2020) also has builtin support for `import.meta`,
so I would hope the use case for disabling this setting no longer
exists.

See emscripten-core#9234 and emscripten-core#8729
sbc100 added a commit to sbc100/emscripten that referenced this pull request Dec 17, 2024
This setting was added (IIUC) as a temporary workaround for the lack or
support for `import.meta` in browser and tooling.

However `import.meta` has been at stage 4 for almost 5 years now:
tc39/proposal-import-meta#21

Webback (released in 2020) also has builtin support for `import.meta`,
so I would hope the use case for disabling this setting no longer
exists.

See emscripten-core#9234 and emscripten-core#8729
sbc100 added a commit to sbc100/emscripten that referenced this pull request Dec 18, 2024
This setting was added (IIUC) as a temporary workaround for the lack or
support for `import.meta` in browser and tooling.

However `import.meta` has been at stage 4 for almost 5 years now:
tc39/proposal-import-meta#21

Webback (released in 2020) also has builtin support for `import.meta`,
so I would hope the use case for disabling this setting no longer
exists.

See emscripten-core#9234 and emscripten-core#8729
sbc100 added a commit to sbc100/emscripten that referenced this pull request Jan 2, 2025
This setting was added (IIUC) as a temporary workaround for the lack or
support for `import.meta` in browser and tooling.

However `import.meta` has been at stage 4 for almost 5 years now:
tc39/proposal-import-meta#21

Webback (released in 2020) also has builtin support for `import.meta`,
so I would hope the use case for disabling this setting no longer
exists.

See emscripten-core#9234 and emscripten-core#8729
sbc100 added a commit to sbc100/emscripten that referenced this pull request Feb 20, 2025
This setting was added (IIUC) as a temporary workaround for the lack or
support for `import.meta` in browser and tooling.

However `import.meta` has been at stage 4 for almost 5 years now:
tc39/proposal-import-meta#21

Webback (released in 2020) also has builtin support for `import.meta`,
so I would hope the use case for disabling this setting no longer
exists.

See emscripten-core#9234 and emscripten-core#8729
sbc100 added a commit to sbc100/emscripten that referenced this pull request Feb 20, 2025
This setting was added (IIUC) as a temporary workaround for the lack or
support for `import.meta` in browser and tooling.

However `import.meta` has been at stage 4 for almost 5 years now:
tc39/proposal-import-meta#21

Webback (released in 2020) also has builtin support for `import.meta`,
so I would hope the use case for disabling this setting no longer
exists.

See emscripten-core#9234 and emscripten-core#8729
sbc100 added a commit that referenced this pull request Feb 21, 2025
This setting was added (IIUC) as a temporary workaround for the lack or
support for `import.meta` in browser and tooling.

However `import.meta` has been at stage 4 for almost 5 years now:
tc39/proposal-import-meta#21

Webback (released in 2020) also has builtin support for `import.meta`,
so I would hope the use case for disabling this setting no longer
exists.

See #9234 and #8729
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

Successfully merging this pull request may close these issues.

5 participants