one
Version:
One is a React framework for web, iOS, and Android apps.
26 lines (24 loc) • 775 B
JavaScript
function removeReactNativeWebAnimatedPlugin(opts) {
const filter = opts?.panResponder ? /(react-native\/Animated\/Animated|PlatformPressable|PanResponder|ResponderSystem)/ : /(react-native\/Animated\/Animated|PlatformPressable)/;
const optimizeDeps = { rolldownOptions: { plugins: [{
name: "remove-react-native-web-animated",
resolveId(source) {
if (filter.test(source)) {
return `\0proxy-wormify:${source}`;
}
},
load(id) {
if (id.startsWith("\0proxy-wormify:")) {
return `export * from "@tamagui/proxy-worm";`;
}
}
}] } };
return {
name: "remove-react-native-web-animated",
config() {
return { optimizeDeps };
}
};
}
export { removeReactNativeWebAnimatedPlugin };
//# sourceMappingURL=removeReactNativeWebAnimatedPlugin.mjs.map