one
Version:
One is a new React Framework that makes Vite serve both native and web.
35 lines (34 loc) • 1.04 kB
JavaScript
function removeReactNativeWebAnimatedPlugin(opts) {
const filter = opts?.panResponder ? /(react-native\/Animated\/Animated|PlatformPressable|PanResponder|ResponderSystem)/ : /(react-native\/Animated\/Animated|PlatformPressable)/,
optimizeDeps = {
esbuildOptions: {
plugins: [{
name: "remove-react-native-web-animated",
setup(build) {
build.onResolve({
filter
}, args => ({
path: args.path,
namespace: "proxy-wormify"
})), build.onLoad({
filter: /.*/,
namespace: "proxy-wormify"
}, args => ({
contents: 'export * from "@tamagui/proxy-worm";',
loader: "js"
}));
}
}]
}
};
return {
name: "remove-react-native-web-animated",
config() {
return {
optimizeDeps
};
}
};
}
export { removeReactNativeWebAnimatedPlugin };
//# sourceMappingURL=removeReactNativeWebAnimatedPlugin.mjs.map