one
Version:
One is a React framework for web, iOS, and Android apps.
19 lines (16 loc) • 461 B
JavaScript
import { renderKotlinSourceModule } from "./kotlinSourceModule.mjs";
function kotlinSourcePlugin(platform, root) {
return {
name: "one:kotlin-source",
load: {
filter: { id: /\.kt$/ },
handler(id) {
const { code, watchFiles } = renderKotlinSourceModule(id, platform, root);
for (const file of watchFiles) this.addWatchFile(file);
return code;
}
}
};
}
export { kotlinSourcePlugin };
//# sourceMappingURL=kotlinSourcePlugin.mjs.map