ameerthehacker / blazepack

⚡ Blazing fast dev server powered by sandpack
GNU Lesser General Public License v3.0
234 stars 17 forks source link

How do I add custom transpilers #35

Closed ClassicOldSong closed 3 years ago

ClassicOldSong commented 3 years ago

I wrote a custom template engine which uses a custom syntax. How could I get it transpiled using blazepack?

See here for a quick demo: https://codesandbox.io/s/efjs-starter-template-n42jy?file=/src/app.eft

ameerthehacker commented 3 years ago

@ClassicOldSong we support only client based codesandbox templates as all our transpilation happens in the browser. You can add custom babel plugins and macros by using .babelrc file in the vanilla template.

ClassicOldSong commented 3 years ago

Yeah that's what exactly what I want to ask. Most transpilers(not babel based) could run directly in browser including the one I mentioned above. Is there any way adding it to blazepack or make blazepack recognize it as a plugin?

ameerthehacker commented 3 years ago

@ClassicOldSong not currently as by design we don't meddle with sandpack which actually does the bundling, may be in the future if we expand the scope of blazepack we may add some hooks to sandpack bundler so that we can implement some plugins for such use cases to work.