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