pmneo / ts-importer

MIT License
73 stars 8 forks source link

Adding custom import statement #40

Closed fabiante closed 7 years ago

fabiante commented 7 years ago

Would it be possible to add custom import / export statements?

I work with a custom JS engine that has this import schema

part.js

var a = 42;

main.js

// #import "part.js"
console.log(a) // Logs 42 to the console

In the above script the complete content of the script part.js is copied into the script main.js. Would this extension be extendable to serve this functionality?

pmneo commented 7 years ago

I'm sorry, but this this not planned.