Skip to content

e2b-dev/ijavascript-babel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ijavascript-babel

Babel transforms for the ijavascript kernel (typescript, top-level await, esm import).

  • esmcjs - transforms esm imports to require
  • topLevelAwait - transforms top-level await to async iife

Example usage

import { esmcjs, topLevelAwait } from './lib/index.js'

const result = await babel.transform(code, {
  plugins: [esmcjs, topLevelAwait],
})

console.log(result.code)

About

babel transforms for ijavascript kernel (typescript, top-level await, esm import)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published