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

chore: set "type": "module" #78

Merged
merged 4 commits into from Jul 30, 2023
Merged

chore: set "type": "module" #78

merged 4 commits into from Jul 30, 2023

Conversation

hi-ogawa
Copy link
Owner

@hi-ogawa hi-ogawa commented Jul 30, 2023

todo

  • a few rename since vite emits xxx.js instead of xxx.mjs
  • test on staing

@hi-ogawa hi-ogawa changed the title chore: set type module chore: set "type": "module" Jul 30, 2023
@hi-ogawa hi-ogawa mentioned this pull request Jul 30, 2023
5 tasks
Comment on lines -29 to -32
env: {
...(process.env as any),
PORT,
},
Copy link
Owner Author

@hi-ogawa hi-ogawa Jul 30, 2023

Choose a reason for hiding this comment

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

It seems this way of passing process.env is causing --experimental-loader to be also included, which breaks server command:

Anyway, we should only need PORT, so we can just overwrite it like process.env.PORT ??= "4456" above.

Copy link
Owner Author

Choose a reason for hiding this comment

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

This is actually a bit more annoying since, for example, this --experimental-loader also injected when running child_process.exec inside playwright e2e.

@hi-ogawa hi-ogawa merged commit 4834ee4 into main Jul 30, 2023
1 check passed
@hi-ogawa hi-ogawa deleted the chore-type-module branch July 30, 2023 00:32
@hi-ogawa hi-ogawa mentioned this pull request Jul 30, 2023
4 tasks
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.

None yet

1 participant