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

Make it work with vanilla tooling (requires latest LTS 18.16. or higher) #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Zeko369
Copy link

@Zeko369 Zeko369 commented Apr 21, 2023

I also added an example that works with node > 19 natively (technically with >18.11.10 since it was ported, but I think you need a --experimental-watch flag or something like that) node 18.16. LTS and up

@Zeko369
Copy link
Author

Zeko369 commented Apr 21, 2023

Actually works fine with the current LTS of 18.16.0 😃

https://twitter.com/Zeko369/status/1649353285348851714

@Zeko369 Zeko369 changed the title Make it work with vanilla tooling (requires node >19) Make it work with vanilla tooling (requires latest LTS 18.16. or higher) Apr 21, 2023
@infomiho
Copy link
Owner

@Zeko369 I do get some experimental warns

❯ node -v
v18.16.0
❯ npm run dev:vanilla

> [email protected] dev:vanilla
> node --watch --loader ts-node/esm -r dotenv/config src/index.ts

(node:7218) ExperimentalWarning: Watch mode is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:7219) ExperimentalWarning: Custom ESM Loaders is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Hello World undefined
Hello world
Hello world
Completed running 'src/index.ts'

@Zeko369
Copy link
Author

Zeko369 commented Apr 21, 2023

Interesting 😅

CleanShot 2023-04-21 at 13 42 38@2x

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.

2 participants