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

[PFX-811] - Tune Intl action #975

Merged
merged 10 commits into from
Nov 20, 2024
Merged

[PFX-811] - Tune Intl action #975

merged 10 commits into from
Nov 20, 2024

Conversation

mmason2-godaddy
Copy link
Contributor

@mmason2-godaddy mmason2-godaddy commented Nov 20, 2024

Summary

Changelog

  • Tune getIntlManager to import intl.js
  • Add json assertion to dynamic import
  • Add ESM flag to jest for dynamic import
  • Add config for experimental import attributes

Test Plan

Updated

@mmason2-godaddy mmason2-godaddy requested a review from a team as a code owner November 20, 2024 16:08
Copy link
Contributor

@agerard-godaddy agerard-godaddy left a comment

Choose a reason for hiding this comment

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

Small tweak then 👍

@mmason2-godaddy mmason2-godaddy merged commit 65b564d into main Nov 20, 2024
2 checks passed
@mmason2-godaddy mmason2-godaddy deleted the PFX-811 branch November 20, 2024 23:09
@@ -50,6 +50,10 @@ module.exports = async function buildManifest(gasket, options = {}) {
const keyName = importName
.replace(/\.json$/, '')
.replace('./', '');
if (gasket.config.intl.experimentalImportAttributes) {
Copy link
Contributor

Choose a reason for hiding this comment

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

y'all should create a top level experimental/future flag which uses import asserts.

import as/from are executed at build time. createRequire is executed at runtime which makes it harder to run gasket in serverless environments

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.

4 participants