#use require ?

26 messages · Page 1 of 1 (latest)

desert blaze
#

Any way to use my existing code which has lot of require() to deno ?

#

i dont want to change a 200 mb huge thing with requires to imports

#

its painful

#

it cant find modules?

#

uh why?

neon merlin
# desert blaze

If you use createRequire from std/node/module.ts you will need to manually install these modules using npm/pnpm/yarn

desert blaze
#

Oh

desert blaze
nimble rock
desert blaze
#

In discord.js

#

Lot of junk to clean

#

So dont mind that

nimble rock
#

you could do a simple robot in python to replace requires by imports

desert blaze
#

Lemme just manually change it

neon merlin
upbeat estuary
#

You can use import for local files.

#

import './commands.ts'

desert blaze
#

Like the "index.js" file thing

#

Sobinhave to change a lot