Skip to content

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

Open
Zeko369 wants to merge 1 commit into
infomiho:mainfrom
Zeko369:main
Open

Make it work with vanilla tooling (requires latest LTS 18.16. or higher)#1
Zeko369 wants to merge 1 commit into
infomiho:mainfrom
Zeko369:main

Conversation

@Zeko369

@Zeko369 Zeko369 commented Apr 21, 2023

Copy link
Copy Markdown

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

Zeko369 commented Apr 21, 2023

Copy link
Copy Markdown
Author

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
Copy Markdown
Owner

@Zeko369 I do get some experimental warns

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

> my-project@1.0.0 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

Zeko369 commented Apr 21, 2023

Copy link
Copy Markdown
Author

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